Skip to content

Commit 43f8eef

Browse files
committed
Test
1 parent c1a7b87 commit 43f8eef

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sample-apps/springboot/build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
* permissions and limitations under the License.
1414
*/
1515

16+
val javaVersion = if (project.hasProperty("javaVersion")) {
17+
JavaVersion.toVersion(project.property("javaVersion").toString())
18+
} else {
19+
JavaVersion.VERSION_11
20+
}
21+
1622
plugins {
1723
java
1824
application
@@ -23,8 +29,8 @@ plugins {
2329

2430
group = "com.amazon.sampleapp"
2531
version = "0.0.1-SNAPSHOT"
26-
java.sourceCompatibility = JavaVersion.VERSION_11
27-
java.targetCompatibility = JavaVersion.VERSION_11
32+
java.sourceCompatibility = javaVersion
33+
java.targetCompatibility = javaVersion
2834

2935
repositories {
3036
mavenCentral()

0 commit comments

Comments
 (0)