SNAPSHOT builds publish to Sonatype OSSRH, closes #165

This commit is contained in:
Emux
2016-09-08 22:32:42 +03:00
parent 1328d050e0
commit 801eda470d
15 changed files with 27 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
apply plugin: 'signing'
if (project.hasProperty("android")) { // Android libraries
if (project.hasProperty("android")) {
task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
@@ -12,7 +12,7 @@ if (project.hasProperty("android")) { // Android libraries
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
exclude 'android-logger.properties'
}
} else { // Java libraries
} else {
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
@@ -42,6 +42,9 @@ uploadArchives {
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: SONATYPE_USERNAME, password: SONATYPE_PASSWORD)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: SONATYPE_USERNAME, password: SONATYPE_PASSWORD)
}
pom.project {
packaging 'jar'