Build: flags for comparing gradle and jps
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
f35680e823
commit
59411e1a28
@@ -52,10 +52,10 @@ class KotlinBuildProperties(
|
||||
get() = isJpsBuildEnabled && isInIdeaSync
|
||||
|
||||
val includeJava9: Boolean
|
||||
get() = !isInJpsBuildIdeaSync
|
||||
get() = !isInJpsBuildIdeaSync && getBoolean("kotlin.build.java9", true)
|
||||
|
||||
val useBootstrapStdlib: Boolean
|
||||
get() = isInJpsBuildIdeaSync
|
||||
get() = isInJpsBuildIdeaSync || getBoolean("kotlin.build.useBootstrapStdlib", false)
|
||||
|
||||
val kotlinUltimateExists: Boolean = propertiesProvider.rootProjectDir.resolve("kotlin-ultimate").exists()
|
||||
|
||||
|
||||
@@ -13,3 +13,9 @@ kotlin.compiler.newInferenceEnabled=true
|
||||
|
||||
#jpsBuild=true
|
||||
#cidrPluginsEnabled=true
|
||||
|
||||
## Used for compare gradle and jps build
|
||||
|
||||
#kotlin.build.postprocessing=false
|
||||
#kotlin.build.java9=false
|
||||
#kotlin.build.useBootstrapStdlib=true
|
||||
@@ -10,3 +10,14 @@ kotlin.compiler.newInferenceEnabled=true
|
||||
#signingRequired=true
|
||||
|
||||
intellijUltimateEnabled=false
|
||||
|
||||
## The following properties can be added to your local.properties file to customize the build:
|
||||
|
||||
#jpsBuild=true
|
||||
#cidrPluginsEnabled=true
|
||||
|
||||
## Used for compare gradle and jps build
|
||||
|
||||
#kotlin.build.postprocessing=false
|
||||
#kotlin.build.java9=false
|
||||
#kotlin.build.useBootstrapStdlib=true
|
||||
@@ -10,3 +10,14 @@ kotlin.compiler.newInferenceEnabled=true
|
||||
#signingRequired=true
|
||||
|
||||
intellijUltimateEnabled=false
|
||||
|
||||
## The following properties can be added to your local.properties file to customize the build:
|
||||
|
||||
#jpsBuild=true
|
||||
#cidrPluginsEnabled=true
|
||||
|
||||
## Used for compare gradle and jps build
|
||||
|
||||
#kotlin.build.postprocessing=false
|
||||
#kotlin.build.java9=false
|
||||
#kotlin.build.useBootstrapStdlib=true
|
||||
+12
-1
@@ -10,4 +10,15 @@ kotlin.compiler.newInferenceEnabled=true
|
||||
#signingRequired=true
|
||||
|
||||
intellijUltimateEnabled=false
|
||||
intellijEnforceCommunitySdk=true
|
||||
intellijEnforceCommunitySdk=true
|
||||
|
||||
## The following properties can be added to your local.properties file to customize the build:
|
||||
|
||||
#jpsBuild=true
|
||||
#cidrPluginsEnabled=true
|
||||
|
||||
## Used for compare gradle and jps build
|
||||
|
||||
#kotlin.build.postprocessing=false
|
||||
#kotlin.build.java9=false
|
||||
#kotlin.build.useBootstrapStdlib=true
|
||||
@@ -44,10 +44,13 @@ val compilerPlugins by configurations.creating {
|
||||
|
||||
val sources by configurations.creating {
|
||||
exclude("org.jetbrains.kotlin", "kotlin-stdlib-common")
|
||||
isTransitive = false
|
||||
}
|
||||
|
||||
// contents of dist/maven directory
|
||||
val distMavenContents by configurations.creating
|
||||
val distMavenContents by configurations.creating {
|
||||
isTransitive = false
|
||||
}
|
||||
// contents of dist/common directory
|
||||
val distCommonContents by configurations.creating
|
||||
val distStdlibMinimalForTests by configurations.creating
|
||||
@@ -337,5 +340,6 @@ inline fun <reified T : AbstractCopyTask> Project.distTask(
|
||||
) = tasks.register<T>(name) {
|
||||
duplicatesStrategy = DuplicatesStrategy.FAIL
|
||||
rename(quote("-$version"), "")
|
||||
rename(quote("-$bootstrapKotlinVersion"), "")
|
||||
block()
|
||||
}
|
||||
@@ -174,4 +174,5 @@ tasks.register<Sync>("ideaPlugin") {
|
||||
}
|
||||
|
||||
rename(quote("-$version"), "")
|
||||
rename(quote("-$bootstrapKotlinVersion"), "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user