Skip to content

Commit

Permalink
Remove idea-gradle-tooling-api.jar from IDEA 2020
Browse files Browse the repository at this point in the history
Because gradle-6.1.jar is now bundled into idea-gradle plugin

(cherry picked from commit 04c924a)
  • Loading branch information
NataliaUkhorskaya authored and snrostov committed Mar 18, 2020
1 parent 5519806 commit 703be29
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 13 deletions.
26 changes: 15 additions & 11 deletions idea/idea-gradle-tooling-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@ plugins {
id("jps-compatible")
}

dependencies {
compileOnly(intellijPluginDep("gradle"))
}
// BUNCH 193: this module is no longer needed since IDEA 2020.1
Platform[193].orLower {
dependencies {
compileOnly(intellijPluginDep("gradle"))
}

sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}

runtimeJar()
runtimeJar()

sourcesJar()
sourcesJar()

javadocJar()
javadocJar()

apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
}

apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
Empty file.
4 changes: 3 additions & 1 deletion idea/idea-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ dependencies {
compileOnly(project(":idea:idea-jvm"))
compileOnly(project(":idea:idea-native")) { isTransitive = false }
compile(project(":idea:kotlin-gradle-tooling"))
compile(project(":idea:idea-gradle-tooling-api"))
Platform[193].orLower {
compile(project(":idea:idea-gradle-tooling-api"))
}

compile(project(":compiler:frontend"))
compile(project(":compiler:frontend.java"))
Expand Down
5 changes: 4 additions & 1 deletion prepare/idea-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ dependencies {
gradleToolingModel(project(":plugins:android-extensions-ide")) { isTransitive = false }
gradleToolingModel(project(":noarg-ide-plugin")) { isTransitive = false }
gradleToolingModel(project(":allopen-ide-plugin")) { isTransitive = false }
gradleToolingModel(project(":idea:idea-gradle-tooling-api")) { isTransitive = false }

Platform[193].orLower {
gradleToolingModel(project(":idea:idea-gradle-tooling-api")) { isTransitive = false }
}

jpsPlugin(project(":kotlin-jps-plugin")) { isTransitive = false }

Expand Down

0 comments on commit 703be29

Please sign in to comment.