From 7b10ba8dc0c963a879ad09d10f878a78264e4559 Mon Sep 17 00:00:00 2001 From: Richard Harrah <1672786+ToppleTheNun@users.noreply.github.com> Date: Sun, 3 Sep 2023 18:02:24 -0400 Subject: [PATCH] fix changelog generation (#85) --- .github/workflows/gradle.yml | 29 +++++++++++++++++++++++++++++ build.gradle.kts | 1 - gradle.properties | 1 - 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5be069b..d15d873 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -25,6 +25,7 @@ jobs: fetch-depth: '0' # https://github.com/shipkit/shipkit-auto-version#fetch-depth-on-ci - name: Gradle wrapper validation uses: gradle/wrapper-validation-action@v1.0.6 + build: runs-on: ubuntu-latest needs: [ gradle_wrapper_validation ] @@ -78,3 +79,31 @@ jobs: GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + build_k2: + runs-on: ubuntu-latest + needs: [ gradle_wrapper_validation ] + if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" + permissions: + contents: write + issues: write + pull-requests: write + steps: + - name: Checkout code + uses: actions/checkout@v3 # https://github.com/actions/checkout + with: + fetch-depth: '0' # https://github.com/shipkit/shipkit-changelog#fetch-depth-on-ci + + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: adopt + java-version: 17 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Perform Build via Gradle + uses: gradle/gradle-build-action@v2 + with: + arguments: build --scan -Pkotlin.experimental.tryK2=true diff --git a/build.gradle.kts b/build.gradle.kts index fd3f0e7..30ce9b3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -118,7 +118,6 @@ tasks { "compileKotlin", "javadoc", "dokkaJavadoc", - "inspectClassesForKotlinIC", "javadocJar", "sourcesJar", "generateMetadataFileForPluginMavenPublication", diff --git a/gradle.properties b/gradle.properties index 25fac37..e236e3e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,2 @@ kotlin.code.style=official org.gradle.console=plain -kotlin.experimental.tryK2=true