Skip to content

Commit

Permalink
refactor: OpenRewrite best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne committed Aug 9, 2024
1 parent 59b4168 commit 274ea9d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public void defaults(RecipeSpec spec) {
void openJdk() {
rewriteRun(
//language=groovy
groovy("""
groovy(
"""
#!/usr/bin/env groovy
stage("Checkout") {
Expand Down Expand Up @@ -64,7 +65,8 @@ void jdk() {
rewriteRun(
spec -> spec.recipe(new UpgradeJavaVersion(17, "openjdk")),
//language=groovy
groovy("""
groovy(
"""
node('cicd-build') {
stage ("Titan") {
titan {
Expand Down Expand Up @@ -101,7 +103,8 @@ void scmCheckout () {
rewriteRun(
spec -> spec.recipe(new UpgradeJavaVersion(21, "jdk")),
//language=groovy
groovy("""
groovy(
"""
node('cicd-build') {
stage("Checkout") {
scmCheckout {
Expand Down

0 comments on commit 274ea9d

Please sign in to comment.