From 7338f4bce1fdf8a9b6d34c234e08c4f91eee1d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Prante?= Date: Thu, 13 Jun 2019 20:22:25 +0200 Subject: [PATCH] modify for gradle config --- build.gradle | 8 +------- gradle/publish.gradle | 16 ---------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/build.gradle b/build.gradle index 5273aa6..800b799 100644 --- a/build.gradle +++ b/build.gradle @@ -109,13 +109,7 @@ subprojects { artifacts { archives javadocJar, sourcesJar } - - if (project.hasProperty('signing.keyId')) { - signing { - sign configurations.archives - } - } - + apply from: "${rootProject.projectDir}/gradle/publish.gradle" spotbugs { diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 8675487..4b652e4 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -5,22 +5,6 @@ ext { scmDeveloperConnection = 'scm:git:git://github.com/jprante/elx.git' } -task xbibUpload(type: Upload, dependsOn: build) { - group = 'publish' - configuration = configurations.archives - uploadDescriptor = true - repositories { - if (project.hasProperty("xbibUsername")) { - mavenDeployer { - configuration = configurations.wagon - repository(url: uri(project.property('xbibUrl'))) { - authentication(userName: xbibUsername, privateKey: xbibPrivateKey) - } - } - } - } -} - task sonaTypeUpload(type: Upload, dependsOn: build) { group = 'publish' configuration = configurations.archives