-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Gradle & OpenRewrite 8.0 (#4)
* Switch to Gradle * OpenRewrite 8.0 * License format * Update settings.gradle.kts * Rename packages to org.openrewrite.cucumber.jvm * Replace GitHub workflows * Simplify & fix CucumberAnnotationToSuite * Update README.md
- Loading branch information
Showing
33 changed files
with
847 additions
and
515 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: "chore(ci)" | ||
- package-ecosystem: gradle | ||
directory: / | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: "chore(ci)" | ||
open-pull-requests-limit: 0 |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags-ignore: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: 0 17 * * * | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
uses: openrewrite/gh-automation/.github/workflows/ci-gradle.yml@main | ||
secrets: | ||
gradle_enterprise_access_key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
gradle_enterprise_cache_username: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | ||
gradle_enterprise_cache_password: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} | ||
ossrh_username: ${{ secrets.OSSRH_USERNAME }} | ||
ossrh_token: ${{ secrets.OSSRH_TOKEN }} | ||
ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }} | ||
ossrh_signing_password: ${{ secrets.OSSRH_SIGNING_PASSWORD }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: dependency-check | ||
|
||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: 0 18 * * * | ||
|
||
concurrency: | ||
group: dependency-check-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
dependency-check: | ||
uses: openrewrite/gh-automation/.github/workflows/dependency-check-gradle.yml@main | ||
secrets: | ||
slack_alerts_webhook: ${{ secrets.SLACK_ALERTS_WEBHOOK }} | ||
gradle_enterprise_access_key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
gradle_enterprise_cache_username: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | ||
gradle_enterprise_cache_password: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
- v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+ | ||
|
||
concurrency: | ||
group: publish-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
release: | ||
uses: openrewrite/gh-automation/.github/workflows/publish-gradle.yml@main | ||
secrets: | ||
gradle_enterprise_access_key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
ossrh_username: ${{ secrets.OSSRH_USERNAME }} | ||
ossrh_token: ${{ secrets.OSSRH_TOKEN }} | ||
ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }} | ||
ossrh_signing_password: ${{ secrets.OSSRH_SIGNING_PASSWORD }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: repository-backup | ||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: 0 17 * * * | ||
|
||
concurrency: | ||
group: backup-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
repository-backup: | ||
uses: openrewrite/gh-automation/.github/workflows/repository-backup.yml@main | ||
secrets: | ||
bucket_mirror_target: ${{ secrets.S3_GITHUB_REPOSITORY_BACKUPS_BUCKET_NAME }} | ||
bucket_access_key_id: ${{ secrets.S3_GITHUB_REPOSITORY_BACKUPS_ACCESS_KEY_ID }} | ||
bucket_secret_access_key: ${{ secrets.S3_GITHUB_REPOSITORY_BACKUPS_SECRET_ACCESS_KEY }} |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
plugins { | ||
id("org.openrewrite.build.recipe-library") version "latest.release" | ||
} | ||
|
||
group = "org.openrewrite.recipe" | ||
description = "Cucumber JVM Migration" | ||
|
||
val rewriteVersion = rewriteRecipe.rewriteVersion.get() | ||
dependencies { | ||
implementation("io.cucumber:cucumber-java:7.12.0") | ||
implementation("io.cucumber:cucumber-java8:7.12.0") | ||
implementation("io.cucumber:cucumber-plugin:7.12.0") | ||
implementation("io.cucumber:cucumber-junit-platform-engine:7.12.0") | ||
implementation("org.junit.platform:junit-platform-suite-api:1.9.3") | ||
|
||
compileOnly("org.projectlombok:lombok:latest.release") | ||
annotationProcessor("org.projectlombok:lombok:latest.release") | ||
|
||
implementation(platform("org.openrewrite:rewrite-bom:$rewriteVersion")) | ||
implementation("org.openrewrite:rewrite-java") | ||
implementation("org.openrewrite:rewrite-gradle") | ||
implementation("org.openrewrite:rewrite-maven") | ||
|
||
implementation("org.openrewrite.recipe:rewrite-static-analysis:$rewriteVersion") | ||
|
||
testImplementation("org.openrewrite:rewrite-java-17") | ||
testImplementation("org.openrewrite:rewrite-test") | ||
|
||
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.9.3") | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2023 the original author or authors. | ||
<p> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
<p> | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
<p> | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.