Skip to content

Update plugin org.jetbrains.kotlin.jvm to v2.1.0 (#197) #667

Update plugin org.jetbrains.kotlin.jvm to v2.1.0 (#197)

Update plugin org.jetbrains.kotlin.jvm to v2.1.0 (#197) #667

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Grant execute permission for ./gradlew
run: chmod +x gradlew
- name: Grant execute permission for codegen-test/gradlew
working-directory: ./codegen-test
run: chmod +x gradlew
- name: Assemble and Check
run: ./gradlew assemble check
- name: Test plugin (generate Java code)
working-directory: ./codegen-test
run: ./gradlew domaCodeGenJavaAll build
- name: Test plugin (generate Kotlin code)
working-directory: ./codegen-test
run: ./gradlew domaCodeGenKotlinAll build
- name: Set version
id: set-version
run: ./gradlew properties | grep "^version:" | awk '{print $2}' | { read v; echo "::set-output name=version::$v"; }
- name: Print version
run: echo ${{ steps.set-version.outputs.version }}
- name: Publish plugin
if: github.event_name == 'push' && endsWith(steps.set-version.outputs.version, 'SNAPSHOT') == false
run: ./gradlew publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}