@@ -2,15 +2,15 @@ import java.net.URI
22import kotlinx.kover.api.KoverTaskExtension
33import org.gradle.api.tasks.testing.logging.TestExceptionFormat
44import org.gradle.api.tasks.testing.logging.TestLogEvent
5- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
5+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
66
77plugins {
8- kotlin(" jvm" ) version " 1.9.22 "
8+ kotlin(" jvm" ) version " 2.3.0 "
99 id(" java-library" )
1010 id(" com.github.ben-manes.versions" ) version " 0.44.0"
11- id(" io.gitlab.arturbosch.detekt" ) version " 1.23.0 "
11+ id(" io.gitlab.arturbosch.detekt" ) version " 1.23.8 "
1212 id(" org.jetbrains.kotlinx.kover" ) version " 0.6.1"
13- id(" com.ncorti.ktfmt.gradle" ) version " 0.15.1 "
13+ id(" com.ncorti.ktfmt.gradle" ) version " 0.25.0 "
1414}
1515
1616repositories {
@@ -37,7 +37,8 @@ dependencies {
3737 implementation(" org.jfree:jfreechart:1.5.4" )
3838 implementation(" com.konghq:unirest-java:3.14.2" )
3939 implementation(" com.github.lgooddatepicker:LGoodDatePicker:11.2.1" )
40- implementation(" org.apache.derby:derby:10.14.2.0" )
40+ implementation(" org.apache.derby:derby:10.16.1.1" )
41+ implementation(" org.apache.derby:derbytools:10.16.1.1" )
4142 implementation(" com.amazonaws:aws-java-sdk-elasticsearch:1.12.396" )
4243 implementation(" com.amazonaws:aws-java-sdk-s3:1.12.396" )
4344 implementation(" com.github.awslabs:aws-request-signing-apache-interceptor:b3772780da" )
@@ -57,24 +58,14 @@ kotlin { sourceSets.all { languageSettings { languageVersion = "2.0" } } }
5758
5859project.setProperty(" mainClassName" , " dartzee.main.DartsMainKt" )
5960
60- val compileKotlin: KotlinCompile by tasks
61- val compileTestKotlin: KotlinCompile by tasks
61+ kotlin {
62+ compilerOptions {
63+ jvmTarget.set(JvmTarget .JVM_1_8 )
6264
63- compileKotlin.kotlinOptions {
64- jvmTarget = " 11"
65-
66- java {
67- sourceCompatibility = JavaVersion .VERSION_11
68- targetCompatibility = JavaVersion .VERSION_1_8
69- }
70- }
71-
72- compileTestKotlin.kotlinOptions {
73- jvmTarget = " 11"
74-
75- java {
76- sourceCompatibility = JavaVersion .VERSION_11
77- targetCompatibility = JavaVersion .VERSION_11
65+ java {
66+ sourceCompatibility = JavaVersion .VERSION_17
67+ targetCompatibility = JavaVersion .VERSION_1_8
68+ }
7869 }
7970}
8071
@@ -114,14 +105,17 @@ tasks.withType<Test> {
114105 minHeapSize = " 1024m"
115106 maxHeapSize = " 1024m"
116107
117- jvmArgs =
118- listOf (
119- " -Dcom.sun.management.jmxremote" ,
120- " -Dcom.sun.management.jmxremote.port=9010" ,
121- " -Dcom.sun.management.jmxremote.authenticate=false" ,
122- " -Dcom.sun.management.jmxremote.ssl=false" ,
123- " -Djava.rmi.server.hostname=localhost"
124- )
108+ jvmArgs(
109+ " -Dcom.sun.management.jmxremote" ,
110+ " -Dcom.sun.management.jmxremote.port=9010" ,
111+ " -Dcom.sun.management.jmxremote.authenticate=false" ,
112+ " -Dcom.sun.management.jmxremote.ssl=false" ,
113+ " -Djava.rmi.server.hostname=localhost" ,
114+ " --add-opens" ,
115+ " java.desktop/sun.awt=ALL-UNNAMED" ,
116+ " --add-opens" ,
117+ " java.desktop/java.awt=ALL-UNNAMED" ,
118+ )
125119
126120 extensions.configure<KoverTaskExtension > { isDisabled.set(name != " unitTest" ) }
127121
0 commit comments