From 99e20654a92072b39d26069e9ad78b86c10925ce Mon Sep 17 00:00:00 2001 From: Marcin Pawlicki Date: Thu, 26 Jan 2023 16:28:22 +0100 Subject: [PATCH] java version --- build.gradle | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c3f6693..520a7be 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { group = 'com.s477603' version = '0.0.1-SNAPSHOT' -sourceCompatibility = '17' +sourceCompatibility = JavaVersion.VERSION_17 configurations { compileOnly { @@ -16,6 +16,12 @@ configurations { repositories { mavenCentral() + maven { + url "https://repo.spring.io/release" + } + maven { + url "https://repository.jboss.org/maven2" + } } dependencies { @@ -31,3 +37,10 @@ dependencies { tasks.named('test') { useJUnitPlatform() } + +tasks.named("bootJar") { + manifest { + attributes 'Start-Class': 'com.s477603.movies.MoviesApplication' + attributes 'Main-Class': 'com.s477603.movies.MoviesApplication' + } +} \ No newline at end of file