From 51e9cb4e68add54f845f678e932b61d71e48212c Mon Sep 17 00:00:00 2001 From: Scott Murphy Date: Tue, 23 Jan 2024 21:40:21 -0600 Subject: [PATCH] Clean up publishing --- .github/workflows/gradle.yml | 2 +- build.gradle | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 2ad5113..fba3cc9 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -28,4 +28,4 @@ jobs: echo "signing.secretKeyRingFile=${HOME}/.gradle/secring.gpg" >> ~/.gradle/gradle.properties echo ${GPG_SIGNING_KEY} | base64 -d > ~/.gradle/secring.gpg - name: Run build with Gradle Wrapper - run: ./gradlew assemble test publishToSonatype \ No newline at end of file + run: ./gradlew test publishToSonatype \ No newline at end of file diff --git a/build.gradle b/build.gradle index 6e8beb2..0b567eb 100644 --- a/build.gradle +++ b/build.gradle @@ -16,11 +16,6 @@ allprojects { repositories { mavenCentral() // Use Maven Central Repo to search for Dependencies } - - java { - withSourcesJar() - withJavadocJar() - } } subprojects { @@ -92,6 +87,11 @@ subprojects { signing { sign publishing.publications.mavenJava } + + java { + withSourcesJar() + withJavadocJar() + } } nexusPublishing {