From 1bead2b47bec1c6c9be4dfc4afc2f9fdb9ab7891 Mon Sep 17 00:00:00 2001 From: "MSI\\derek" Date: Tue, 4 Mar 2025 17:38:48 +0800 Subject: [PATCH] dependency for kotlin --- build.gradle | 10 +++++++++- settings.gradle | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 43a8eea..0842663 100644 --- a/build.gradle +++ b/build.gradle @@ -2,17 +2,20 @@ plugins { id 'java' id 'org.springframework.boot' version '3.1.1' id 'io.spring.dependency-management' version '1.1.0' + id 'org.jetbrains.kotlin.jvm' } group = 'com.ffii' version = '0.0.1-SNAPSHOT' java { - sourceCompatibility = '17' } repositories { mavenCentral() + maven { + url 'https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/' + } } dependencies { @@ -47,6 +50,8 @@ dependencies { testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.security:spring-security-test' + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" + implementation "org.jetbrains.kotlin:kotlin-reflect" } configurations { @@ -54,3 +59,6 @@ configurations { exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' } } +kotlin { + jvmToolchain(17) +} diff --git a/settings.gradle b/settings.gradle index 3610d15..68461a8 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,9 @@ +pluginManagement { + plugins { + id 'org.jetbrains.kotlin.jvm' version '1.9.23' + } +} +plugins { + id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0' +} rootProject.name = 'FPSMS'