From 3efd6e0f03c3dabbbc9acbb52b058e0482d146ad Mon Sep 17 00:00:00 2001 From: Maksim Sasnouski Date: Thu, 29 Feb 2024 13:09:17 +0300 Subject: [PATCH] Use gradle Java plugin configuration block Java direct convention use deprecated: https://docs.gradle.org/8.6/userguide/upgrading_version_8.html#java_convention_deprecation --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2a4ebf14e6c..e2f5769e832 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,10 @@ gradle.startParameter.excludedTaskNames += [ "checkFormatAot", "checkFormatAotTe group = 'org.springframework.samples' version = '3.2.0' -sourceCompatibility = '17' + +java { + sourceCompatibility = JavaVersion.VERSION_17 +} repositories { mavenCentral()