Skip to content

Commit 090844a

Browse files
committed
Add declarative recipe for JavaVersion17. (closes #115)
- change java.version property to 17 - change maven.compiler.source property to 17 - change maven.compiler.target property to 17
1 parent c62f6bc commit 090844a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#
2+
# Copyright 2022 the original author or authors.
3+
# <p>
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# <p>
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
# <p>
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
---
17+
type: specs.openrewrite.org/v1beta/recipe
18+
name: org.openrewrite.java.migrate.JavaVersion17
19+
displayName: Change Maven Java version property values to 17
20+
description: Change maven.compiler.source and maven.compiler.target values to 17.
21+
recipeList:
22+
- org.openrewrite.maven.ChangePropertyValue:
23+
key: java.version
24+
newValue: 17
25+
addIfMissing: false
26+
- org.openrewrite.maven.ChangePropertyValue:
27+
key: maven.compiler.source
28+
newValue: 17
29+
addIfMissing: false
30+
- org.openrewrite.maven.ChangePropertyValue:
31+
key: maven.compiler.target
32+
newValue: 17
33+
addIfMissing: false

0 commit comments

Comments
 (0)