Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Commit

Permalink
Do not attempt to sign the root jar and sources
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Aug 13, 2018
1 parent 9becebb commit 70e4d87
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions build.gradle
Expand Up @@ -155,14 +155,16 @@ allprojects {
}
}

jar {
destinationDir = file("${rootProject.buildDir}/libs")
}
if (project != rootProject) {
jar {
destinationDir = file("${rootProject.buildDir}/libs")
}

task sourcesJar(type: Jar, dependsOn: classes) {
destinationDir = file("${rootProject.buildDir}/src")
classifier = 'sources'
from sourceSets.main.allSource
task sourcesJar(type: Jar, dependsOn: classes) {
destinationDir = file("${rootProject.buildDir}/src")
classifier = 'sources'
from sourceSets.main.allSource
}
}

task dokkaJar(type: Jar, dependsOn: dokka) {
Expand All @@ -172,18 +174,16 @@ allprojects {
}

if (project.name != 'eth-reference-tests') {
signing {
useGpgCmd()
sign configurations.archives
}

tasks.withType(Sign) {
onlyIf { System.getenv('ENABLE_SIGNING') == 'true' }
}

artifacts {
archives jar
archives sourcesJar
if (project != rootProject) {
archives jar
archives sourcesJar
}
archives dokkaJar
}

Expand Down Expand Up @@ -276,6 +276,11 @@ allprojects {
}
}

signing {
useGpgCmd()
sign publishing.publications.MavenDeployment
}

def artifactIdMatcher = Pattern.compile("(.*)-\\d.*")
bintray {
user = System.getenv('BINTRAY_USER')
Expand Down

0 comments on commit 70e4d87

Please sign in to comment.