Fix dependency on javac2.jar
In 203.8084.24 this jar was moved from intellij dependencies to libraries of intellij java plugin
This commit is contained in:
@@ -20,12 +20,22 @@ fun Project.configureJavaInstrumentation() {
|
|||||||
if (plugins.hasPlugin("org.gradle.java")) {
|
if (plugins.hasPlugin("org.gradle.java")) {
|
||||||
val javaInstrumentator by configurations.creating
|
val javaInstrumentator by configurations.creating
|
||||||
dependencies {
|
dependencies {
|
||||||
javaInstrumentator(intellijDep()) {
|
Platform[202] {
|
||||||
includeJars("javac2", "jdom", "asm-all", rootProject = rootProject)
|
javaInstrumentator(intellijDep()) {
|
||||||
|
includeJars("javac2", "jdom", "asm-all", rootProject = rootProject)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Platform[203].orHigher {
|
||||||
|
javaInstrumentator(intellijDep()) {
|
||||||
|
includeJars("jdom", "asm-all", rootProject = rootProject)
|
||||||
|
}
|
||||||
|
javaInstrumentator(intellijPluginDep("java")) {
|
||||||
|
includeJars("javac2", rootProject = rootProject)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (sourceSet in listOf(mainSourceSet, testSourceSet)) {
|
for (sourceSet in listOf(mainSourceSet, testSourceSet)) {
|
||||||
tasks.named(sourceSet.compileJavaTaskName, InstrumentJava(javaInstrumentator, sourceSet))
|
tasks.named(sourceSet.compileJavaTaskName, InstrumentJava(javaInstrumentator, sourceSet))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user