Skip to content

Commit

Permalink
Debug plugin publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Jan 20, 2025
1 parent 5fb5cfb commit 2afd4d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.gradle.publish.PublishTask

plugins {
// release
id("com.bakdata.release") version "1.4.0"
Expand Down Expand Up @@ -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<PublishTask> {
setValidate(true)
}
}

// description is only ready after evaluation
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pluginManagement {

rootProject.name = 'gradle-plugins'

include 'sonar', 'sonatype', 'release', 'jib'
include 'jib'

0 comments on commit 2afd4d4

Please sign in to comment.