We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a7b87 commit 43f8eefCopy full SHA for 43f8eef
sample-apps/springboot/build.gradle.kts
@@ -13,6 +13,12 @@
13
* permissions and limitations under the License.
14
*/
15
16
+val javaVersion = if (project.hasProperty("javaVersion")) {
17
+ JavaVersion.toVersion(project.property("javaVersion").toString())
18
+} else {
19
+ JavaVersion.VERSION_11
20
+}
21
+
22
plugins {
23
java
24
application
@@ -23,8 +29,8 @@ plugins {
29
30
group = "com.amazon.sampleapp"
25
31
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
28
34
35
repositories {
36
mavenCentral()
0 commit comments