Skip to content

Commit

Permalink
signing cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchsst committed Mar 20, 2022
1 parent fe8fc9b commit 77dcc04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
29 changes: 2 additions & 27 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,6 @@ publishing {
artifact(javadocJar) {
classifier = 'javadoc'
}

// create the sign pom artifact
pom.withXml {
def pomFile = file("${project.buildDir}/generated-pom.xml")
writeTo(pomFile)
def pomAscFile = signing.sign(pomFile).signatureFiles[0]
artifact(pomAscFile) {
classifier = null
extension = 'pom.asc'
}
}
}
}
repositories {
Expand All @@ -163,10 +152,7 @@ publishing {
}

signing {
setRequired {
// signing is only required if the artifacts are to be published
gradle.taskGraph.allTasks.any { it.equals(PublishToMavenRepository) }
}
required { gradle.taskGraph.hasTask("publish") }
sign publishing.publications.mavenJava
}

Expand All @@ -177,21 +163,10 @@ model {
}
}

signing {
sign configurations.archives
}

model {
tasks.publishMavenJavaPublicationToMavenLocal {
dependsOn project.tasks.signArchives
}
tasks.publishMavenJavaPublicationToMavenRepository {
dependsOn project.tasks.signArchives
}
}

test {
testLogging {
showStandardStreams = true
}
jvmArgs '-Duser.language=en'
}
5 changes: 3 additions & 2 deletions playground/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ repositories {
}

dependencies {
compileOnly project(':core')
compileOnly 'org.eclipse.jetty:jetty-server:9.4.45.v20220203'
implementation project(':core')
implementation 'org.eclipse.jetty:jetty-server:9.4.45.v20220203'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
}

group 'com.schibsted.spt.data'
Expand Down

0 comments on commit 77dcc04

Please sign in to comment.