Commit 419ae3a7 authored by Thilo Rörig's avatar Thilo Rörig

fixed configuration problem when properties file is missing

removed signing tasks
parent a21b59fb
Pipeline #425 passed with stages
in 1 minute and 45 seconds
......@@ -46,9 +46,9 @@ artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
//signing {
// sign configurations.archives
//}
publishing {
publications {
......@@ -83,8 +83,8 @@ publishing {
repositories {
maven {
name = 'local'
def releasesRepoUrl = "file://$buildDir/repo/releases"
def snapshotsRepoUrl = "file://$buildDir/repo/snapshots"
String releasesRepoUrl = "file://$buildDir/repo/releases"
String snapshotsRepoUrl = "file://$buildDir/repo/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
maven {
......@@ -92,9 +92,12 @@ publishing {
def artifactoryUrl = "http://127.0.0.1:8081/artifactory"
def releasesRepoUrl = artifactoryUrl + "/libs-release-local"
def snapshotsRepoUrl = artifactoryUrl + "/libs-snapshots-local"
credentials{
username "$artifactory_user"
password "$artifactory_password"
def file = new File("gradle.properties")
if(file.exists()) {
credentials {
username "$artifactory_user"
password "$artifactory_password"
}
}
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment