Build: Get jps-build-test directly from maven
This commit is contained in:
@@ -307,6 +307,7 @@ allprojects {
|
|||||||
bootstrapKotlinRepo?.let(::maven)
|
bootstrapKotlinRepo?.let(::maven)
|
||||||
jcenter()
|
jcenter()
|
||||||
maven(protobufRepo)
|
maven(protobufRepo)
|
||||||
|
maven(intellijRepo)
|
||||||
}
|
}
|
||||||
|
|
||||||
configureJvmProject(javaHome!!, jvmTarget!!)
|
configureJvmProject(javaHome!!, jvmTarget!!)
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ val intellijUltimate by configurations.creating
|
|||||||
val androidStudio by configurations.creating
|
val androidStudio by configurations.creating
|
||||||
val sources by configurations.creating
|
val sources by configurations.creating
|
||||||
val jpsStandalone by configurations.creating
|
val jpsStandalone by configurations.creating
|
||||||
val jpsBuildTest by configurations.creating
|
|
||||||
val intellijCore by configurations.creating
|
val intellijCore by configurations.creating
|
||||||
val nodeJS by configurations.creating
|
val nodeJS by configurations.creating
|
||||||
val androidBuildTools by configurations.creating
|
val androidBuildTools by configurations.creating
|
||||||
@@ -141,7 +140,6 @@ dependencies {
|
|||||||
|
|
||||||
sources("com.jetbrains.intellij.idea:ideaIC:$intellijVersion:sources@jar")
|
sources("com.jetbrains.intellij.idea:ideaIC:$intellijVersion:sources@jar")
|
||||||
jpsStandalone("com.jetbrains.intellij.idea:jps-standalone:$intellijVersion")
|
jpsStandalone("com.jetbrains.intellij.idea:jps-standalone:$intellijVersion")
|
||||||
jpsBuildTest("com.jetbrains.intellij.idea:jps-build-test:$intellijVersion")
|
|
||||||
intellijCore("com.jetbrains.intellij.idea:intellij-core:$intellijVersion")
|
intellijCore("com.jetbrains.intellij.idea:intellij-core:$intellijVersion")
|
||||||
if (intellijUltimateEnabled) {
|
if (intellijUltimateEnabled) {
|
||||||
nodeJS("com.jetbrains.plugins:NodeJS:${rootProject.extra["versions.idea.NodeJS"]}@zip")
|
nodeJS("com.jetbrains.plugins:NodeJS:${rootProject.extra["versions.idea.NodeJS"]}@zip")
|
||||||
@@ -275,7 +273,6 @@ val build by tasks.creating {
|
|||||||
makeIntellijCore,
|
makeIntellijCore,
|
||||||
makeIde,
|
makeIde,
|
||||||
buildIvyRepositoryTask(jpsStandalone, customDepsOrg, customDepsRepoDir, null, sourcesFile),
|
buildIvyRepositoryTask(jpsStandalone, customDepsOrg, customDepsRepoDir, null, sourcesFile),
|
||||||
buildIvyRepositoryTask(jpsBuildTest, customDepsOrg, customDepsRepoDir, null, sourcesFile),
|
|
||||||
makeIntellijAnnotations,
|
makeIntellijAnnotations,
|
||||||
buildIvyRepoForAndroidDx
|
buildIvyRepoForAndroidDx
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ import org.gradle.kotlin.dsl.extra
|
|||||||
import org.gradle.kotlin.dsl.project
|
import org.gradle.kotlin.dsl.project
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
|
val Project.isSnapshotIntellij get() = rootProject.extra["versions.intellijSdk"].toString().endsWith("SNAPSHOT")
|
||||||
|
|
||||||
|
val Project.intellijRepo get() = "https://www.jetbrains.com/intellij-repository/" + if (isSnapshotIntellij) "snapshots" else "releases"
|
||||||
|
|
||||||
fun Project.commonDep(coord: String): String {
|
fun Project.commonDep(coord: String): String {
|
||||||
val parts = coord.split(':')
|
val parts = coord.split(':')
|
||||||
|
|||||||
@@ -65,12 +65,12 @@ fun Project.intellijCoreDep() = "kotlin.build:intellij-core:${rootProject.extra[
|
|||||||
|
|
||||||
fun Project.jpsStandalone() = "kotlin.build:jps-standalone:${rootProject.extra["versions.intellijSdk"]}"
|
fun Project.jpsStandalone() = "kotlin.build:jps-standalone:${rootProject.extra["versions.intellijSdk"]}"
|
||||||
|
|
||||||
fun Project.jpsBuildTest() = "kotlin.build:jps-build-test:${rootProject.extra["versions.intellijSdk"]}"
|
|
||||||
|
|
||||||
fun Project.nodeJSPlugin() = "kotlin.build:NodeJS:${rootProject.extra["versions.idea.NodeJS"]}"
|
fun Project.nodeJSPlugin() = "kotlin.build:NodeJS:${rootProject.extra["versions.idea.NodeJS"]}"
|
||||||
|
|
||||||
fun Project.androidDxJar() = "kotlin.build:android-dx:${rootProject.extra["versions.androidBuildTools"]}"
|
fun Project.androidDxJar() = "kotlin.build:android-dx:${rootProject.extra["versions.androidBuildTools"]}"
|
||||||
|
|
||||||
|
fun Project.jpsBuildTest() = "com.jetbrains.intellij.idea:jps-build-test:${rootProject.extra["versions.intellijSdk"]}"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runtime version of annotations that are already in Kotlin stdlib (historically Kotlin has older version of this one).
|
* Runtime version of annotations that are already in Kotlin stdlib (historically Kotlin has older version of this one).
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fatJarContents(intellijDep()) { includeJars("jna-platform", "lz4-1.3.0") }
|
fatJarContents(intellijDep()) { includeJars("jna-platform", "lz4-1.3.0") }
|
||||||
fatJarContentsStripServices(intellijDep("jps-standalone")) { includeJars("jps-model") }
|
fatJarContentsStripServices(jpsStandalone()) { includeJars("jps-model") }
|
||||||
fatJarContentsStripMetadata(intellijDep()) { includeJars("oro-2.0.8", "jdom", "log4j" ) }
|
fatJarContentsStripMetadata(intellijDep()) { includeJars("oro-2.0.8", "jdom", "log4j" ) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user