From f3fa3ef161a3fd8ad7d197e28b893fb643d11145 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 6b2c544..f430cb0 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 d28c236..8c5d233 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 {