From 3245eea7e0e1c60250593c813fecd1727ce3f81c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Grze=C5=9Blowski?= Date: Sun, 27 Oct 2024 19:15:56 +0100 Subject: [PATCH] Configure tasks --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index d17f6ce7..87873432 100644 --- a/build.gradle +++ b/build.gradle @@ -65,6 +65,8 @@ allProjects { apply plugin: 'maven-publish' group = 'pl.grzeslowski.jSupla' java { + withSourcesJar() + withJavadocJar() toolchain { languageVersion = JavaLanguageVersion.of(17) } @@ -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 {