mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
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")) {
|
||||
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))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user