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:
Dmitriy Novozhilov
2021-07-08 10:43:35 +03:00
parent 30578cfb95
commit d44a2f6fd3

View File

@@ -20,12 +20,22 @@ fun Project.configureJavaInstrumentation() {
if (plugins.hasPlugin("org.gradle.java")) {
val javaInstrumentator by configurations.creating
dependencies {
javaInstrumentator(intellijDep()) {
includeJars("javac2", "jdom", "asm-all", rootProject = rootProject)
Platform[202] {
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)) {
tasks.named(sourceSet.compileJavaTaskName, InstrumentJava(javaInstrumentator, sourceSet))
}
}
}
}