Skip to content

Commit

Permalink
Fixed getting a jar file from the classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
mvicsokolova committed Jun 10, 2022
1 parent 5b42bd7 commit d8bc9e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions integration-testing/build.gradle
Expand Up @@ -71,20 +71,17 @@ task mavenTest(type: Test) {

task debugAgentTest(type: Test) {
def sourceSet = sourceSets.debugAgentTest
//dependsOn(project(':kotlinx-coroutines-debug').shadowJar)
def debugJar = null
sourceSet.runtimeClasspath.files.forEach {if (it.name.contains("kotlinx-coroutines-debug")) debugJar = it }
jvmArgs ('-javaagent:' + debugJar)
def coroutinesDebugJar = sourceSet.runtimeClasspath.filter {it.name == "kotlinx-coroutines-debug-${coroutines_version}.jar" }.singleFile
jvmArgs ('-javaagent:' + coroutinesDebugJar)
testClassesDirs = sourceSet.output.classesDirs
classpath = sourceSet.runtimeClasspath
systemProperties project.properties.subMap(["overwrite.probes"])
}

task coreAgentTest(type: Test) {
def sourceSet = sourceSets.coreAgentTest
def coreJar = null
sourceSet.runtimeClasspath.files.forEach {if (it.name.contains("kotlinx-coroutines-core")) coreJar = it }
jvmArgs ('-javaagent:' + coreJar)
def coroutinesCoreJar = sourceSet.runtimeClasspath.filter {it.name == "kotlinx-coroutines-core-jvm-${coroutines_version}.jar" }.singleFile
jvmArgs ('-javaagent:' + coroutinesCoreJar)
testClassesDirs = sourceSet.output.classesDirs
classpath = sourceSet.runtimeClasspath
}
Expand All @@ -94,5 +91,5 @@ compileTestKotlin {
}

check {
dependsOn([mavenTest, coreAgentTest, ':smokeTest:build'])
dependsOn([mavenTest, debugAgentTest, coreAgentTest, 'smokeTest:build'])
}
@@ -1,5 +1,5 @@
plugins {
id 'kotlin-multiplatform'
id 'org.jetbrains.kotlin.multiplatform'
}

repositories {
Expand Down Expand Up @@ -40,4 +40,4 @@ kotlin {
}
}
}
}
}

0 comments on commit d8bc9e4

Please sign in to comment.