This should fix the missing ossrhUsername problem
This commit is contained in:
parent
fefefe6809
commit
3b3e972c99
62
build.gradle
62
build.gradle
@ -32,41 +32,43 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
if (hasProperty('ossrhUsername')) {
|
||||||
repositories {
|
uploadArchives {
|
||||||
mavenDeployer {
|
repositories {
|
||||||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
mavenDeployer {
|
||||||
|
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
||||||
|
|
||||||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
|
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
|
||||||
authentication(userName: ossrhUsername, password: ossrhPassword)
|
authentication(userName: ossrhUsername, password: ossrhPassword)
|
||||||
}
|
|
||||||
|
|
||||||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
|
|
||||||
authentication(userName: ossrhUsername, password: ossrhPassword)
|
|
||||||
}
|
|
||||||
|
|
||||||
pom.project {
|
|
||||||
name 'Jabit'
|
|
||||||
packaging 'jar'
|
|
||||||
url 'https://github.com/Dissem/Jabit'
|
|
||||||
|
|
||||||
scm {
|
|
||||||
connection 'scm:git:https://github.com/Dissem/Jabit.git'
|
|
||||||
developerConnection 'scm:git:git@github.com:Dissem/Jabit.git'
|
|
||||||
url 'https://github.com/Dissem/Jabit.git'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
licenses {
|
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
|
||||||
license {
|
authentication(userName: ossrhUsername, password: ossrhPassword)
|
||||||
name 'The Apache License, Version 2.0'
|
}
|
||||||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
||||||
|
pom.project {
|
||||||
|
name 'Jabit'
|
||||||
|
packaging 'jar'
|
||||||
|
url 'https://github.com/Dissem/Jabit'
|
||||||
|
|
||||||
|
scm {
|
||||||
|
connection 'scm:git:https://github.com/Dissem/Jabit.git'
|
||||||
|
developerConnection 'scm:git:git@github.com:Dissem/Jabit.git'
|
||||||
|
url 'https://github.com/Dissem/Jabit.git'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
developers {
|
licenses {
|
||||||
developer {
|
license {
|
||||||
name 'Christian Basler'
|
name 'The Apache License, Version 2.0'
|
||||||
email 'chrigu.meyer@gmail.com'
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
name 'Christian Basler'
|
||||||
|
email 'chrigu.meyer@gmail.com'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user