diff --git a/build.gradle.kts b/build.gradle.kts index 6afe69c..7933e0e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -39,7 +39,7 @@ publishData { // This would use "master" as our stable branch // useEldoNexusRepos() - // We publish everything of the java branch, which includes our compiled jar, sources and javadocs + // We publish everything of the java component, which includes our compiled jar, sources and javadocs publishComponent("java") } @@ -54,7 +54,7 @@ publishing { maven { authentication { credentials(PasswordCredentials::class) { - // Those credentials need to be set under "Settings -> Secrets" in your repository + // Those credentials need to be set under "Settings -> Secrets -> Actions" in your repository username = System.getenv("NEXUS_USERNAME") password = System.getenv("NEXUS_PASSWORD") } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 41dfb87..aa991fc 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/workflows/publish_gradle.yml b/workflows/publish_gradle.yml index 8c56827..b273177 100644 --- a/workflows/publish_gradle.yml +++ b/workflows/publish_gradle.yml @@ -1,3 +1,7 @@ +################################################################### +# This file should be located at .github/workflows/.yml # +################################################################### + name: Publish Gradle to Nexus on: @@ -19,7 +23,8 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v3 with: - distribution: adopt + distribution: temurin + # Set your java version here java-version: 17 - name: Build with Gradle run: ./gradlew --build-cache build @@ -28,6 +33,6 @@ jobs: - name: Publish to eldonexus run: ./gradlew publishMavenPublicationToEldoNexusRepository env: - # Those credentials need to be set under "Settings -> Secrets" in your repository + # Those credentials need to be set under "Settings -> Secrets -> Actions" in your repository NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}