1
1
import org.apache.tools.ant.filters.ReplaceTokens
2
2
import org.jetbrains.kotlin.gradle.internal.KaptTask
3
3
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
- import org.sonarqube.gradle.SonarQubeTask
5
4
import org.javamodularity.moduleplugin.extensions.TestModuleOptions
6
5
import org.gradle.internal.os.OperatingSystem
7
6
8
7
9
8
plugins {
10
- val kotlinVersion = " 1.7.10 "
9
+ val kotlinVersion = " 1.9.24 "
11
10
application
12
11
13
12
jacoco
14
13
idea
15
14
antlr
16
15
kotlin(" jvm" ) version kotlinVersion
17
16
kotlin(" kapt" ) version kotlinVersion
18
- id(" org.sonarqube" ) version " 3.1 "
17
+ id(" org.sonarqube" ) version " 5.1.0.4882 "
19
18
id(" com.github.ben-manes.versions" ) version " 0.36.0"
20
19
21
- id(" org.openjfx.javafxplugin" ) version " 0.0.13 "
20
+ id(" org.openjfx.javafxplugin" ) version " 0.1.0 "
22
21
23
22
id(" org.javamodularity.moduleplugin" ) version " 1.8.12"
24
- id(" org.beryx.jlink" ) version " 2.25.0 "
23
+ id(" org.beryx.jlink" ) version " 3.0.1 "
25
24
26
25
id(" com.palantir.git-version" ) version " 2.0.0"
27
26
}
@@ -49,7 +48,7 @@ application {
49
48
}
50
49
51
50
java {
52
- sourceCompatibility = JavaVersion .VERSION_17
51
+ sourceCompatibility = JavaVersion .VERSION_21
53
52
}
54
53
55
54
kapt {
@@ -65,7 +64,7 @@ configurations {
65
64
val spek_version = " 2.0.4"
66
65
67
66
dependencies {
68
- val daggerVersion = " 2.43.1 "
67
+ val daggerVersion = " 2.50 " // with dagger 2.52 they introduced an incomplete usage ofjakarta.inject
69
68
antlr(group = " org.antlr" , name = " antlr4" , version = " 4.9.1" )
70
69
implementation(group = " org.antlr" , name = " antlr4-runtime" , version = " 4.9.1" )
71
70
@@ -82,17 +81,24 @@ dependencies {
82
81
implementation(kotlin(" stdlib-jdk8" ))
83
82
84
83
testImplementation(" commons-io:commons-io:2.8.0" )
85
- testImplementation(" org.mockito:mockito-core:4.5.1 " )
86
- testImplementation(" org.mockito.kotlin:mockito-kotlin:4.1 .0" )
87
- testImplementation(" org.assertj:assertj-core:3.18.1 " )
84
+ testImplementation(" org.mockito:mockito-core:5.12.0 " )
85
+ testImplementation(" org.mockito.kotlin:mockito-kotlin:5.4 .0" )
86
+ testImplementation(" org.assertj:assertj-core:3.26.3 " )
88
87
testImplementation(" junit:junit-dep:4.11" )
89
88
}
90
89
91
90
javafx {
92
- version = " 17 .0.1 "
91
+ version = " 21 .0.4 "
93
92
modules(" javafx.base" , " javafx.controls" , " javafx.fxml" , " javafx.graphics" )
94
93
}
95
94
95
+ sonar {
96
+ properties {
97
+ property(" sonar.projectkey" , " org.stt:stt" )
98
+ property(" sonar.projectName" , " SimpleTimeTracking" )
99
+ }
100
+ }
101
+
96
102
distributions.getByName(" main" ) {
97
103
contents {
98
104
include(" **/STT*" )
@@ -117,7 +123,7 @@ tasks.test {
117
123
}
118
124
}
119
125
120
- tasks.withType<KaptTask > {
126
+ tasks.withType< org.jetbrains.kotlin.gradle.internal. KaptGenerateStubsTask > {
121
127
dependsOn(tasks.withType<AntlrTask >())
122
128
}
123
129
// provided by plugin: com.palantir.git-version
@@ -161,13 +167,8 @@ tasks.withType<AntlrTask> {
161
167
arguments = arguments + " -visitor" + " -long-messages"
162
168
}
163
169
164
- tasks.withType<SonarQubeTask > {
165
- properties + = " sonar.projectName" to " SimpleTimeTracking"
166
- properties + = " sonar.projectKey" to " org.stt:stt"
167
- }
168
-
169
170
tasks.withType<KotlinCompile > {
170
- kotlinOptions.jvmTarget = " 17 "
171
+ kotlinOptions.jvmTarget = " 21 "
171
172
}
172
173
173
174
// tasks.named("dependencyUpdates", com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask::class.java).configure {
0 commit comments