From 970e48e3512fd6b5634b2f370e6ed820ead1c0c1 Mon Sep 17 00:00:00 2001 From: elblasco <64553614+elblasco@users.noreply.github.com> Date: Sat, 28 Sep 2024 09:27:34 +0200 Subject: [PATCH] fix: build script gradle --- build.gradle | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 48a178e..40b4d90 100644 --- a/build.gradle +++ b/build.gradle @@ -1,17 +1,21 @@ -apply plugin: 'java' -apply plugin: 'application' +plugins { + id 'java' + id 'application' +} group = 'it.unitn.disi.ds1.qtop' -version = '1.0-SNAPSHOT' +version = '1.0' repositories { mavenCentral() mavenLocal() } -def versions = [ +ext { + versions = [ ScalaBinary: "2.13" -] + ] +} dependencies { implementation platform("com.typesafe.akka:akka-bom_${versions.ScalaBinary}:2.6.13") @@ -20,11 +24,13 @@ dependencies { implementation 'org.jetbrains:annotations:24.0.0' } -compileJava { +tasks.withType(JavaCompile) { options.compilerArgs += ["-Xlint:deprecation"] } -mainClassName = "it.unitn.disi.ds1.qtop.QTop" +application { + mainClassName = "it.unitn.disi.ds1.qtop.QTop" +} run { standardInput = System.in