Skip to content

Commit

Permalink
Add declarative recipe for JavaVersion17. (closes #115)
Browse files Browse the repository at this point in the history
  - change java.version property to 17
  - change maven.compiler.source property to 17
  - change maven.compiler.target property to 17
  • Loading branch information
pway99 committed Jul 20, 2022
1 parent c62f6bc commit 090844a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/main/resources/META-INF/rewrite/java-version-17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Copyright 2022 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.
#
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.JavaVersion17
displayName: Change Maven Java version property values to 17
description: Change maven.compiler.source and maven.compiler.target values to 17.
recipeList:
- org.openrewrite.maven.ChangePropertyValue:
key: java.version
newValue: 17
addIfMissing: false
- org.openrewrite.maven.ChangePropertyValue:
key: maven.compiler.source
newValue: 17
addIfMissing: false
- org.openrewrite.maven.ChangePropertyValue:
key: maven.compiler.target
newValue: 17
addIfMissing: false

0 comments on commit 090844a

Please sign in to comment.