[MAVEN PLUGIN; GRADLE-PLUGIN] - Add KDoc/Javadoc to the Gradle plugin and integrate Dokka so IDEs show helpful tooltips; fix missing parameter wiring; improve merged-spec handling to match the Maven plugin #814
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Gradle plugin tests | |
| on: | |
| push: | |
| paths: | |
| - modules/openapi-generator-gradle-plugin/** | |
| pull_request: | |
| paths: | |
| - modules/openapi-generator-gradle-plugin/** | |
| jobs: | |
| test: | |
| name: Gradle plugin tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Cache maven dependencies | |
| uses: actions/cache@v5 | |
| env: | |
| cache-name: cache-maven-repository | |
| with: | |
| path: | | |
| ~/.m2/repository | |
| ~/.gradle | |
| !~/.gradle/caches/modules-2/modules-2.lock | |
| !~/.gradle/caches/*/plugin-resolution/ | |
| !~/.m2/repository/org/openapitools/ | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}- | |
| ${{ runner.os }}-test-gradle-plugin- | |
| - name: mvn clean install | |
| run: | | |
| ./mvnw clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error | |
| - name: Run tests with wrapper | |
| env: | |
| GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
| run: | | |
| (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper | |
| (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate) | |
| (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk) | |
| - name: Setup Gradle | |
| uses: gradle/gradle-build-action@v3 | |
| with: | |
| gradle-version: '8.14.3' | |
| - name: Run tests without wrapper | |
| env: | |
| GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
| run: | | |
| (cd modules/openapi-generator-gradle-plugin/samples/local-spec && gradle buildJavaResttemplateSdk) # not using gradle wrapper |