Fix project structure after rebase on master
This commit is contained in:
@@ -8,6 +8,7 @@ dependencies {
|
|||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
compile(project(":compiler:cli-common"))
|
compile(project(":compiler:cli-common"))
|
||||||
compile(project(":compiler:frontend.java"))
|
compile(project(":compiler:frontend.java"))
|
||||||
|
compile(project(":js:js.serializer"))
|
||||||
compile(ideaSdkDeps("util"))
|
compile(ideaSdkDeps("util"))
|
||||||
testCompile(commonDep("junit:junit"))
|
testCompile(commonDep("junit:junit"))
|
||||||
testCompile(project(":compiler.tests-common"))
|
testCompile(project(":compiler.tests-common"))
|
||||||
|
|||||||
+2
-1
@@ -99,7 +99,7 @@ extra["versions.javaslang"] = "2.0.6"
|
|||||||
extra["versions.ant"] = "1.8.2"
|
extra["versions.ant"] = "1.8.2"
|
||||||
|
|
||||||
extra["ideaCoreSdkJars"] = arrayOf("annotations", "asm-all", "guava", "intellij-core", "jdom", "jna", "log4j", "picocontainer",
|
extra["ideaCoreSdkJars"] = arrayOf("annotations", "asm-all", "guava", "intellij-core", "jdom", "jna", "log4j", "picocontainer",
|
||||||
"snappy-in-java", "trove4j", "xpp3-1.1.4-min", "xstream")
|
"snappy-in-java", "streamex", "trove4j", "xpp3-1.1.4-min", "xstream")
|
||||||
|
|
||||||
extra["compilerModules"] = arrayOf(":compiler:util",
|
extra["compilerModules"] = arrayOf(":compiler:util",
|
||||||
":compiler:container",
|
":compiler:container",
|
||||||
@@ -179,6 +179,7 @@ allprojects {
|
|||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
kotlinOptions.freeCompilerArgs = listOf("-Xallow-kotlin-package", "-module-name", project.name)
|
kotlinOptions.freeCompilerArgs = listOf("-Xallow-kotlin-package", "-module-name", project.name)
|
||||||
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<Kotlin2JsCompile> {
|
tasks.withType<Kotlin2JsCompile> {
|
||||||
|
|||||||
@@ -9,8 +9,12 @@ dependencies {
|
|||||||
compile(project(":compiler:frontend.java"))
|
compile(project(":compiler:frontend.java"))
|
||||||
compile(project(":compiler:cli"))
|
compile(project(":compiler:cli"))
|
||||||
compile(project(":kotlin-build-common"))
|
compile(project(":kotlin-build-common"))
|
||||||
|
testCompile(project(":kotlin-test:kotlin-test-junit"))
|
||||||
|
testCompile(project(":kotlin-stdlib"))
|
||||||
|
testCompile(projectTests(":kotlin-build-common"))
|
||||||
}
|
}
|
||||||
|
|
||||||
configureKotlinProjectSourcesDefault()
|
configureKotlinProjectSourcesDefault()
|
||||||
configureKotlinProjectTestsDefault()
|
configureKotlinProjectTestsDefault()
|
||||||
|
|
||||||
|
testsJar()
|
||||||
|
|||||||
@@ -73,8 +73,6 @@ dependencies {
|
|||||||
testRuntime(ideaPluginDeps("*.jar", plugin = "maven"))
|
testRuntime(ideaPluginDeps("*.jar", plugin = "maven"))
|
||||||
testRuntime(ideaPluginDeps("*.jar", plugin = "android"))
|
testRuntime(ideaPluginDeps("*.jar", plugin = "android"))
|
||||||
|
|
||||||
testRuntime(preloadedDeps("uast-common", "uast-java"))
|
|
||||||
|
|
||||||
// deps below are test runtime deps, but made test compile to split compilation and running to reduce mem req
|
// deps below are test runtime deps, but made test compile to split compilation and running to reduce mem req
|
||||||
testCompile(project(":android-extensions-compiler"))
|
testCompile(project(":android-extensions-compiler"))
|
||||||
testCompile(project(":plugins:android-extensions-idea")) { isTransitive = false }
|
testCompile(project(":plugins:android-extensions-idea")) { isTransitive = false }
|
||||||
@@ -98,6 +96,7 @@ dependencies {
|
|||||||
|
|
||||||
configureKotlinProjectSources("src",
|
configureKotlinProjectSources("src",
|
||||||
"idea-maven/src",
|
"idea-maven/src",
|
||||||
|
"idea-gradle/src",
|
||||||
"idea-completion/src",
|
"idea-completion/src",
|
||||||
"idea-live-templates/src",
|
"idea-live-templates/src",
|
||||||
"idea-repl/src")
|
"idea-repl/src")
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ dependencies {
|
|||||||
compile(project(":idea:ide-common"))
|
compile(project(":idea:ide-common"))
|
||||||
compile(ideaSdkDeps("openapi", "idea"))
|
compile(ideaSdkDeps("openapi", "idea"))
|
||||||
compile(ideaPluginDeps("gradle-tooling-api", plugin = "gradle"))
|
compile(ideaPluginDeps("gradle-tooling-api", plugin = "gradle"))
|
||||||
compile(ideaPluginDeps("android", "common", "sdklib", "sdk-common", "layoutlib-api", plugin = "android"))
|
compile(ideaPluginDeps("android", "android-common", "sdklib", "sdk-common", "layoutlib-api", plugin = "android"))
|
||||||
compile(preloadedDeps("uast-common", "uast-java"))
|
|
||||||
compile(preloadedDeps("dx", subdir = "android-5.0/lib"))
|
compile(preloadedDeps("dx", subdir = "android-5.0/lib"))
|
||||||
|
|
||||||
testCompile(project(":kotlin-test:kotlin-test-jvm"))
|
testCompile(project(":kotlin-test:kotlin-test-jvm"))
|
||||||
@@ -26,11 +25,9 @@ dependencies {
|
|||||||
testCompile(project(":idea:idea-test-framework")) { isTransitive = false }
|
testCompile(project(":idea:idea-test-framework")) { isTransitive = false }
|
||||||
testCompile(project(":plugins:lint")) { isTransitive = false }
|
testCompile(project(":plugins:lint")) { isTransitive = false }
|
||||||
testCompile(projectTests(":idea"))
|
testCompile(projectTests(":idea"))
|
||||||
testCompile(ideaPluginDeps("android-common", "sdklib", plugin = "android"))
|
|
||||||
testCompile(ideaPluginDeps("properties", plugin = "properties"))
|
testCompile(ideaPluginDeps("properties", plugin = "properties"))
|
||||||
testCompile(ideaSdkDeps("gson"))
|
testCompile(ideaSdkDeps("gson"))
|
||||||
|
|
||||||
testRuntime(preloadedDeps("uast-common", "uast-java"))
|
|
||||||
testRuntime(project(":plugins:android-extensions-idea"))
|
testRuntime(project(":plugins:android-extensions-idea"))
|
||||||
testRuntime(project(":plugins:sam-with-receiver-ide"))
|
testRuntime(project(":plugins:sam-with-receiver-ide"))
|
||||||
testRuntime(project(":plugins:noarg-ide"))
|
testRuntime(project(":plugins:noarg-ide"))
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ dependencies {
|
|||||||
compile(project(":compiler:util"))
|
compile(project(":compiler:util"))
|
||||||
compile(ideaSdkCoreDeps("intellij-core"))
|
compile(ideaSdkCoreDeps("intellij-core"))
|
||||||
compile(ideaPluginDeps("gradle-tooling-api", plugin = "gradle"))
|
compile(ideaPluginDeps("gradle-tooling-api", plugin = "gradle"))
|
||||||
compile(ideaPluginDeps("android", "common", "sdk-common", plugin = "android"))
|
compile(ideaPluginDeps("android", "android-common", "sdk-common", plugin = "android"))
|
||||||
}
|
}
|
||||||
|
|
||||||
configureKotlinProjectSourcesDefault()
|
configureKotlinProjectSourcesDefault()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ dependencies {
|
|||||||
compile(ideaSdkCoreDeps("intellij-core", "util"))
|
compile(ideaSdkCoreDeps("intellij-core", "util"))
|
||||||
compile(ideaSdkDeps("openapi", "idea"))
|
compile(ideaSdkDeps("openapi", "idea"))
|
||||||
compile(ideaPluginDeps("gradle-tooling-api", "gradle", plugin = "gradle"))
|
compile(ideaPluginDeps("gradle-tooling-api", "gradle", plugin = "gradle"))
|
||||||
compile(preloadedDeps("uast-common", "kotlinx-coroutines-core", "kotlinx-coroutines-jdk8"))
|
compile(preloadedDeps("kotlinx-coroutines-core", "kotlinx-coroutines-jdk8"))
|
||||||
buildVersion()
|
buildVersion()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,3 +25,5 @@ configureKotlinProjectResources("idea-analysis/src", sourcesBaseDir = File(rootD
|
|||||||
include("**/*.properties")
|
include("**/*.properties")
|
||||||
}
|
}
|
||||||
configureKotlinProjectNoTests()
|
configureKotlinProjectNoTests()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ dependencies {
|
|||||||
// testRuntime(ideaPluginDeps("*.jar", plugin = "java-i18n"))
|
// testRuntime(ideaPluginDeps("*.jar", plugin = "java-i18n"))
|
||||||
// testRuntime(ideaPluginDeps("*.jar", plugin = "coverage"))
|
// testRuntime(ideaPluginDeps("*.jar", plugin = "coverage"))
|
||||||
// testRuntime(ideaPluginDeps("*.jar", plugin = "java-decompiler"))
|
// testRuntime(ideaPluginDeps("*.jar", plugin = "java-decompiler"))
|
||||||
// testRuntime(preloadedDeps("uast-common", "uast-java"))
|
|
||||||
buildVersion()
|
buildVersion()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ dependencies {
|
|||||||
compile(ideaSdkDeps("jps-builders", "jps-builders-6", subdir = "jps"))
|
compile(ideaSdkDeps("jps-builders", "jps-builders-6", subdir = "jps"))
|
||||||
testCompile(project(":compiler.tests-common"))
|
testCompile(project(":compiler.tests-common"))
|
||||||
testCompile(project(":compiler:incremental-compilation-impl"))
|
testCompile(project(":compiler:incremental-compilation-impl"))
|
||||||
|
testCompile(projectTests(":compiler:incremental-compilation-impl"))
|
||||||
testCompileOnly(ideaSdkDeps("jps-build-test", subdir = "jps/test"))
|
testCompileOnly(ideaSdkDeps("jps-build-test", subdir = "jps/test"))
|
||||||
testCompile(commonDep("junit:junit"))
|
testCompile(commonDep("junit:junit"))
|
||||||
testCompile(project(":kotlin-test:kotlin-test-jvm"))
|
testCompile(project(":kotlin-test:kotlin-test-jvm"))
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ ext.configureJvm6Project = { Project project ->
|
|||||||
|
|
||||||
tasks.withType(project.compileKotlin.class) {
|
tasks.withType(project.compileKotlin.class) {
|
||||||
kotlinOptions.jdkHome = JDK_16
|
kotlinOptions.jdkHome = JDK_16
|
||||||
|
kotlinOptions.jvmTarget = "1.6"
|
||||||
doFirst {
|
doFirst {
|
||||||
System.setProperty("kotlin.colors.enabled", "false")
|
System.setProperty("kotlin.colors.enabled", "false")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ dependencies {
|
|||||||
compile(project(":idea:idea-core"))
|
compile(project(":idea:idea-core"))
|
||||||
compile(project(":idea:idea-android"))
|
compile(project(":idea:idea-android"))
|
||||||
compile(project(":plugins:uast-kotlin"))
|
compile(project(":plugins:uast-kotlin"))
|
||||||
compile(preloadedDeps("uast-common", "uast-java"))
|
compile(ideaPluginDeps("android", "android-common", "sdk-common", "sdklib", "sdk-tools", "repository", "lombok-ast", "kxml2", plugin = "android"))
|
||||||
compile(ideaPluginDeps("android", "android-common", "common", "sdk-common", "sdklib", "sdk-tools", "repository", "lombok-ast", "kxml2", plugin = "android"))
|
|
||||||
compile(ideaSdkCoreDeps("intellij-core", "util"))
|
compile(ideaSdkCoreDeps("intellij-core", "util"))
|
||||||
compile(ideaSdkDeps("guava"))
|
compile(ideaSdkDeps("guava"))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ dependencies {
|
|||||||
compile(project(":compiler:frontend.java"))
|
compile(project(":compiler:frontend.java"))
|
||||||
compile(project(":idea:ide-common"))
|
compile(project(":idea:ide-common"))
|
||||||
compile(project(":plugins:uast-kotlin"))
|
compile(project(":plugins:uast-kotlin"))
|
||||||
compile(preloadedDeps("uast-common", "uast-java"))
|
|
||||||
buildVersion()
|
buildVersion()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ dependencies {
|
|||||||
compile(project(":compiler:frontend"))
|
compile(project(":compiler:frontend"))
|
||||||
compile(project(":compiler:frontend.java"))
|
compile(project(":compiler:frontend.java"))
|
||||||
compile(project(":compiler:light-classes"))
|
compile(project(":compiler:light-classes"))
|
||||||
compile(preloadedDeps("uast-common", "uast-java"))
|
compileOnly(ideaSdkDeps("openapi", "idea"))
|
||||||
buildVersion()
|
buildVersion()
|
||||||
testCompile(project(":kotlin-test:kotlin-test-jvm"))
|
testCompile(project(":kotlin-test:kotlin-test-jvm"))
|
||||||
testCompile(project(":compiler.tests-common"))
|
testCompile(project(":compiler.tests-common"))
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ val packagesToRelocate =
|
|||||||
"javax.inject",
|
"javax.inject",
|
||||||
"org.fusesource")
|
"org.fusesource")
|
||||||
|
|
||||||
|
val ideaCoreSdkJars: Array<String> by rootProject.extra
|
||||||
|
val coreSdkJarsSimple = ideaCoreSdkJars.filterNot { it == "jdom" || it == "log4j" }.toTypedArray()
|
||||||
|
|
||||||
fun firstFromJavaHomeThatExists(vararg paths: String): File =
|
fun firstFromJavaHomeThatExists(vararg paths: String): File =
|
||||||
paths.mapNotNull { File(javaHome, it).takeIf { it.exists() } }.firstOrNull()
|
paths.mapNotNull { File(javaHome, it).takeIf { it.exists() } }.firstOrNull()
|
||||||
?: throw GradleException("Cannot find under '$javaHome' neither of: ${paths.joinToString()}")
|
?: throw GradleException("Cannot find under '$javaHome' neither of: ${paths.joinToString()}")
|
||||||
@@ -73,9 +76,8 @@ dependencies {
|
|||||||
// buildVersion()
|
// buildVersion()
|
||||||
|
|
||||||
fatJarContents(project(":core:builtins", configuration = "builtins"))
|
fatJarContents(project(":core:builtins", configuration = "builtins"))
|
||||||
fatJarContents(ideaSdkCoreDeps(*(rootProject.extra["ideaCoreSdkJars"] as Array<String>)))
|
fatJarContents(ideaSdkCoreDeps(*coreSdkJarsSimple))
|
||||||
fatJarContents(ideaSdkDeps("jna-platform", "oromatcher"))
|
fatJarContents(ideaSdkDeps("jna-platform"))
|
||||||
fatJarContents(ideaSdkDeps("jps-model.jar", subdir = "jps"))
|
|
||||||
fatJarContents(commonDep("javax.inject"))
|
fatJarContents(commonDep("javax.inject"))
|
||||||
fatJarContents(commonDep("org.jline", "jline"))
|
fatJarContents(commonDep("org.jline", "jline"))
|
||||||
fatJarContents(protobufFull())
|
fatJarContents(protobufFull())
|
||||||
@@ -106,6 +108,9 @@ val packCompiler by task<ShadowJar> {
|
|||||||
|
|
||||||
setupPublicJar("before-proguard", "")
|
setupPublicJar("before-proguard", "")
|
||||||
from(fatJarContents)
|
from(fatJarContents)
|
||||||
|
ideaSdkDeps("jps-model.jar", subdir = "jps").forEach { from(it) { exclude("META-INF/services/**") } }
|
||||||
|
ideaSdkDeps("oromatcher").forEach { from(it) { exclude("META-INF/jb/** META-INF/LICENSE") } }
|
||||||
|
ideaSdkCoreDeps("jdom", "log4j").forEach { from(it) { exclude("META-INF/jb/** META-INF/LICENSE") } }
|
||||||
|
|
||||||
manifest.attributes.put("Class-Path", compilerManifestClassPath)
|
manifest.attributes.put("Class-Path", compilerManifestClassPath)
|
||||||
manifest.attributes.put("Main-Class", "org.jetbrains.kotlin.cli.jvm.K2JVMCompiler")
|
manifest.attributes.put("Main-Class", "org.jetbrains.kotlin.cli.jvm.K2JVMCompiler")
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ dependencies {
|
|||||||
sideJars(project(":kotlin-script-runtime"))
|
sideJars(project(":kotlin-script-runtime"))
|
||||||
sideJars(commonDep("io.javaslang", "javaslang"))
|
sideJars(commonDep("io.javaslang", "javaslang"))
|
||||||
sideJars(commonDep("javax.inject"))
|
sideJars(commonDep("javax.inject"))
|
||||||
sideJars(preloadedDeps("markdown", "kotlinx-coroutines-core", "kotlinx-coroutines-jdk8", "uast-java"))
|
sideJars(preloadedDeps("markdown", "kotlinx-coroutines-core", "kotlinx-coroutines-jdk8"))
|
||||||
}
|
}
|
||||||
|
|
||||||
val targetJar = File(buildDir, "libs", "kotlin-plugin.jar")
|
val targetJar = File(buildDir, "libs", "kotlin-plugin.jar")
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import org.gradle.jvm.tasks.Jar
|
import org.gradle.jvm.tasks.Jar
|
||||||
import org.gradle.api.internal.HasConvention
|
import org.gradle.api.internal.HasConvention
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
apply { plugin("kotlin") }
|
apply { plugin("kotlin") }
|
||||||
|
|
||||||
@@ -34,6 +35,17 @@ configure<JavaPluginConvention> {
|
|||||||
|
|
||||||
configureKotlinProjectNoTests()
|
configureKotlinProjectNoTests()
|
||||||
|
|
||||||
|
tasks.withType<JavaCompile> {
|
||||||
|
sourceCompatibility = "1.6"
|
||||||
|
targetCompatibility = "1.6"
|
||||||
|
// options.fork = true
|
||||||
|
options.forkOptions.javaHome = file(rootProject.extra["JDK_16"] as String)
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<KotlinCompile> {
|
||||||
|
kotlinOptions.jvmTarget = "1.6"
|
||||||
|
kotlinOptions.jdkHome = rootProject.extra["JDK_16"] as String
|
||||||
|
}
|
||||||
|
|
||||||
task<Copy>("dist") {
|
task<Copy>("dist") {
|
||||||
into(rootProject.extra["distDir"].toString())
|
into(rootProject.extra["distDir"].toString())
|
||||||
|
|||||||
Reference in New Issue
Block a user