diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index 12ef297..0ff9739 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -8,7 +8,7 @@ on: jobs: build-and-publish: name: Java Gradle - uses: bakdata/ci-templates/.github/workflows/java-gradle-plugin.yaml@1.43.0 + uses: bakdata/ci-templates/.github/workflows/java-gradle-plugin.yaml@fix/plugin-publish with: java-version: 17 secrets: @@ -22,3 +22,5 @@ jobs: gradle-publish-key: ${{ secrets.GRADLE_PLUGIN_PUBLISH_KEY }} gradle-publish-secret: ${{ secrets.GRADLE_PLUGIN_PUBLISH_SECRET }} github-token: ${{ secrets.GH_TOKEN }} + github-username: ${{ secrets.GH_USERNAME }} + github-email: ${{ secrets.GH_EMAIL }} diff --git a/build.gradle.kts b/build.gradle.kts index 6951966..8e59712 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import com.gradle.publish.PublishTask + plugins { // release id("com.bakdata.release") version "1.4.0" @@ -57,6 +59,10 @@ subprojects { // config for gradle plugin portal doesn't support snapshot, so we add config only if release version if (!version.toString().endsWith("-SNAPSHOT")) { apply(plugin = "com.gradle.plugin-publish") + + tasks.withType { + setValidate(true) + } } // description is only ready after evaluation diff --git a/gradle.properties b/gradle.properties index 8a2299d..6dca2b0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=1.5.2-SNAPSHOT +version=1.5.0 org.gradle.caching=true org.gradle.parallel=true org.gradle.jvmargs=-Xmx2048m diff --git a/settings.gradle b/settings.gradle index f9bc451..861c58a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,4 +6,4 @@ pluginManagement { rootProject.name = 'gradle-plugins' -include 'sonar', 'sonatype', 'release', 'jib' +include 'jib'