File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import java.math.BigDecimal
44object Config {
55 val AGP = System .getenv(" VERSION_AGP" ) ? : " 8.6.0"
66 val kotlinStdLib = " stdlib-jdk8"
7+ val kotlinTestJunit = " test-junit"
78
89 object BuildPlugins {
910 val androidGradle = " com.android.tools.build:gradle:$AGP "
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ configure<JavaPluginExtension> {
1919}
2020
2121tasks.withType<KotlinCompile >().configureEach {
22- kotlinOptions {
23- jvmTarget = JavaVersion . VERSION_17 .toString( )
24- languageVersion = libs.versions. kotlin.compatible.version.get( )
25- freeCompilerArgs = listOf (" -Xjsr305=strict" )
22+ compilerOptions {
23+ jvmTarget.set(org.jetbrains.kotlin.gradle.dsl. JvmTarget . JVM_17 )
24+ languageVersion.set(org.jetbrains. kotlin.gradle.dsl. KotlinVersion . KOTLIN_2_1 )
25+ freeCompilerArgs.add (" -Xjsr305=strict" )
2626 }
2727}
2828
@@ -57,11 +57,11 @@ dependencies {
5757 // tests
5858 testImplementation(projects.sentryTestSupport)
5959 testImplementation(projects.sentryGraphql)
60- testImplementation(kotlin(Config .kotlinStdLib))
60+ testImplementation(kotlin(Config .kotlinStdLib, " 2.2.0 " ))
6161 testImplementation(libs.awaitility.kotlin.spring7)
6262 testImplementation(libs.context.propagation)
6363 testImplementation(libs.graphql.java24)
64- testImplementation(libs. kotlin.test.junit.spring7 )
64+ testImplementation(kotlin( Config .kotlinTestJunit, " 2.2.0 " ) )
6565 testImplementation(libs.mockito.kotlin.spring7)
6666 testImplementation(libs.mockito.inline)
6767 testImplementation(libs.springboot4.starter.aop)
You can’t perform that action at this time.
0 commit comments