Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Gear up maven central publishing/farewell travis ci (#708)
* feat: introduce gradle-maven-publish-plugin * feat: polish some props * fix: artifact id * fix: version name * refactor: format and remove unused plugin version * fix: rever weird changes * fix: remove travis support and move on to github aciotns * fix: update readme to use maven central links
- Loading branch information
Showing
18 changed files
with
47 additions
and
414 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,2 @@ | ||
apply plugin: 'java-library' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
group = GROUP_ID | ||
version = VERSION | ||
|
||
targetCompatibility = JavaVersion.VERSION_1_6 | ||
sourceCompatibility = JavaVersion.VERSION_1_6 | ||
|
||
task sourcesJar(type: Jar) { | ||
from sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
publishing { | ||
publications { | ||
MyPublication(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
groupId GROUP_ID | ||
artifactId ARTIFACT_ID_ANNOTATION | ||
version VERSION | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
publications = ['MyPublication'] | ||
user = bintrayUser | ||
key = bintrayKey | ||
dryRun = dryRun | ||
publish = true | ||
|
||
pkg { | ||
repo = REPO | ||
userOrg = USER | ||
name = ARTIFACT_ID_ANNOTATION | ||
vcsUrl = VCS_URL | ||
licenses = LICENSES | ||
version { | ||
name = VERSION | ||
desc = DESCRIPTION | ||
} | ||
} | ||
} | ||
|
||
// Non-Android project: Artifactory Plugin adds only 1 publication | ||
project.ext.publicationName = "maven" | ||
apply from: rootProject.file('gradle/gradle-artifactory-upload.gradle') | ||
apply plugin: "com.vanniktech.maven.publish" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
POM_NAME = permissionsdispatcher-annotation | ||
POM_ARTIFACT_ID = permissionsdispatcher-annotation | ||
POM_PACKAGING = jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
POM_NAME = permissionsdispatcher-ktx | ||
POM_ARTIFACT_ID = permissionsdispatcher-ktx | ||
POM_PACKAGING = aar | ||
VERSION_NAME = 1.0.1 |
Oops, something went wrong.