@@ -52,6 +52,7 @@ repositories {
52
52
java {
53
53
sourceCompatibility = JavaVersion . VERSION_1_8
54
54
targetCompatibility = JavaVersion . VERSION_1_8
55
+ modularity. inferModulePath = true
55
56
}
56
57
57
58
dependencies {
@@ -117,6 +118,46 @@ sourceSets {
117
118
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version "
118
119
}
119
120
}
121
+
122
+ debugDynamicAgentJpmsTest {
123
+ compileClasspath + = sourceSets. test. runtimeClasspath
124
+ runtimeClasspath + = sourceSets. test. runtimeClasspath
125
+
126
+ dependencies {
127
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version "
128
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-debug:$coroutines_version "
129
+ }
130
+ }
131
+
132
+ tasks. compileDebugDynamicAgentJpmsTestKotlin. configure {
133
+ compilerOptions {
134
+ jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget . JVM_17
135
+ }
136
+ }
137
+
138
+ tasks. compileDebugDynamicAgentJpmsTestJava. configure {
139
+ options. release. set(17 )
140
+ }
141
+
142
+ debugDynamicAgentJpmsTest {
143
+ compileClasspath + = sourceSets. test. runtimeClasspath
144
+ runtimeClasspath + = sourceSets. test. runtimeClasspath
145
+
146
+ dependencies {
147
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version "
148
+ implementation " org.jetbrains.kotlinx:kotlinx-coroutines-debug:$coroutines_version "
149
+ }
150
+ }
151
+
152
+ tasks. compileDebugDynamicAgentJpmsTestKotlin. configure {
153
+ compilerOptions {
154
+ jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget . JVM_17
155
+ }
156
+ }
157
+
158
+ tasks. compileDebugDynamicAgentJpmsTestJava. configure {
159
+ options. release. set(17 )
160
+ }
120
161
}
121
162
122
163
compileDebugAgentTestKotlin {
@@ -154,6 +195,12 @@ task debugDynamicAgentTest(type: Test) {
154
195
classpath = sourceSet. runtimeClasspath
155
196
}
156
197
198
+ task debugDynamicAgentJpmsTest (type : Test ) {
199
+ def sourceSet = sourceSets. debugDynamicAgentJpmsTest
200
+ testClassesDirs = sourceSet. output. classesDirs
201
+ classpath = sourceSet. runtimeClasspath
202
+ }
203
+
157
204
task coreAgentTest (type : Test ) {
158
205
def sourceSet = sourceSets. coreAgentTest
159
206
def coroutinesCoreJar = sourceSet. runtimeClasspath. filter {it. name == " kotlinx-coroutines-core-jvm-${ coroutines_version} .jar" }. singleFile
@@ -167,7 +214,7 @@ compileTestKotlin {
167
214
}
168
215
169
216
check {
170
- dependsOn([jvmCoreTest, debugDynamicAgentTest, mavenTest, debugAgentTest, coreAgentTest, ' smokeTest:build' ])
217
+ dependsOn([jvmCoreTest, debugDynamicAgentTest, mavenTest, debugAgentTest, coreAgentTest, debugDynamicAgentJpmsTest, ' smokeTest:build' ])
171
218
}
172
219
compileKotlin {
173
220
kotlinOptions {
0 commit comments