Skip to content

Commit

Permalink
Configure tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
magx2 committed Oct 27, 2024
1 parent a90807a commit 3245eea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ allProjects {
apply plugin: 'maven-publish'
group = 'pl.grzeslowski.jSupla'
java {
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
Expand Down Expand Up @@ -224,6 +226,14 @@ prodProjects {
javadoc {
options.addBooleanOption('html5', true)
}

signing {
useInMemoryPgpKeys(
project.findProperty("signing.keyId") ?: System.getenv("SIGNING_KEY"),
project.findProperty("signing.password") ?: System.getenv("SIGNING_PASSWORD")
)
sign(publishing.publications["mavenJava"])
}
}

tasks.named('signMavenJavaPublication').configure {
Expand Down

0 comments on commit 3245eea

Please sign in to comment.