diff --git a/build.gradle.kts b/build.gradle.kts index a3860eda24f..abfd968dce9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,10 +5,10 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import proguard.gradle.ProGuardTask buildscript { - + extra["defaultSnapshotVersion"] = "1.4-SNAPSHOT" val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true - kotlinBootstrapFrom(BootstrapOption.BintrayBootstrap(kotlinBuildProperties.kotlinBootstrapVersion!!, cacheRedirectorEnabled)) + kotlinBootstrapFrom(BootstrapOption.BintrayBootstrap("1.4.0-dev-1075", cacheRedirectorEnabled)) repositories { bootstrapKotlinRepo?.let(::maven) @@ -28,7 +28,7 @@ buildscript { dependencies { bootstrapCompilerClasspath(kotlin("compiler-embeddable", bootstrapKotlinVersion)) - classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.13") + classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.12") classpath("com.gradle.publish:plugin-publish-plugin:0.9.7") classpath(kotlin("gradle-plugin", bootstrapKotlinVersion)) classpath("net.sf.proguard:proguard-gradle:6.1.0") diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index ba1c10996e8..36d6cfdc41c 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -1,11 +1,10 @@ extra["versions.native-platform"] = "0.14" buildscript { - val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true - extra["defaultSnapshotVersion"] = kotlinBuildProperties.defaultSnapshotVersion - kotlinBootstrapFrom(BootstrapOption.BintrayBootstrap(kotlinBuildProperties.kotlinBootstrapVersion!!, cacheRedirectorEnabled)) + val buildSrcKotlinVersion: String by extra(findProperty("buildSrc.kotlin.version")?.toString() ?: embeddedKotlinVersion) + val buildSrcKotlinRepo: String? by extra(findProperty("buildSrc.kotlin.repo") as String?) repositories { if (cacheRedirectorEnabled) { @@ -16,21 +15,21 @@ buildscript { maven("https://kotlin.bintray.com/kotlin-dependencies") } - project.bootstrapKotlinRepo?.let { + buildSrcKotlinRepo?.let { maven(url = it) } } dependencies { - classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.13") - classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${project.bootstrapKotlinVersion}") - classpath("org.jetbrains.kotlin:kotlin-sam-with-receiver:${project.bootstrapKotlinVersion}") + classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.12") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$buildSrcKotlinVersion") + classpath("org.jetbrains.kotlin:kotlin-sam-with-receiver:$buildSrcKotlinVersion") } } val cacheRedirectorEnabled = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() == true -logger.info("buildSrcKotlinVersion: " + extra["bootstrapKotlinVersion"]) +logger.info("buildSrcKotlinVersion: " + extra["buildSrcKotlinVersion"]) logger.info("buildSrc kotlin compiler version: " + org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION) logger.info("buildSrc stdlib version: " + KotlinVersion.CURRENT) @@ -84,14 +83,14 @@ repositories { maven("https://kotlin.bintray.com/kotlin-dependencies") gradlePluginPortal() - extra["bootstrapKotlinRepo"]?.let { + extra["buildSrcKotlinRepo"]?.let { maven(url = it) } } dependencies { implementation(kotlin("stdlib", embeddedKotlinVersion)) - implementation("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.13") + implementation("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.12") implementation("net.rubygrapefruit:native-platform:${property("versions.native-platform")}") implementation("net.rubygrapefruit:native-platform-windows-amd64:${property("versions.native-platform")}") diff --git a/buildSrc/prepare-deps/build.gradle.kts b/buildSrc/prepare-deps/build.gradle.kts index 5b2bad2686e..0d8b69482bf 100644 --- a/buildSrc/prepare-deps/build.gradle.kts +++ b/buildSrc/prepare-deps/build.gradle.kts @@ -9,9 +9,6 @@ import java.text.SimpleDateFormat import java.util.* import javax.xml.stream.XMLOutputFactory -import org.jetbrains.kotlin.gradle.tasks.internal.CleanableStore -import org.jetbrains.kotlin.gradle.tasks.CleanDataTask - plugins { base } @@ -108,8 +105,7 @@ val nodeJSPlugin by configurations.creating val intellijRuntimeAnnotations = "intellij-runtime-annotations" val dependenciesDir = (findProperty("kotlin.build.dependencies.dir") as String?)?.let(::File) - ?: (findProperty("agent.persistent.cache") as String?)?.let(::File) - ?: rootProject.gradle.gradleUserHomeDir.resolve("kotlin-build-dependencies") + ?: rootProject.rootDir.parentFile.resolve("dependencies") val customDepsRepoDir = dependenciesDir.resolve("repo") @@ -146,29 +142,14 @@ dependencies { } } - -val cleanupIntellijCore = tasks.register("cleanupIntellijCore") { - cleanableStoreProvider = provider { CleanableStore[repoDir.resolve("intellij-core").absolutePath] } -} - -val cleanupIntellijAnnotation = tasks.register("cleanupIntellijAnnotation") { - cleanableStoreProvider = provider { CleanableStore[repoDir.resolve(intellijRuntimeAnnotations).absolutePath] } -} - -val cleanupDependencies = tasks.register("cleanupDependencies") { - dependsOn(cleanupIntellijCore) - dependsOn(cleanupIntellijAnnotation) -} - -val makeIntellijCore = buildIvyRepositoryTaskAndRegisterCleanupTask(intellijCore, customDepsOrg, customDepsRepoDir) +val makeIntellijCore = buildIvyRepositoryTask(intellijCore, customDepsOrg, customDepsRepoDir) val makeIntellijAnnotations by tasks.registering(Copy::class) { dependsOn(makeIntellijCore) - val intellijCoreRepo = CleanableStore[repoDir.resolve("intellij-core").absolutePath][intellijVersion].use() - from(intellijCoreRepo.resolve("artifacts/annotations.jar")) + from(repoDir.resolve("intellij-core/$intellijVersion/artifacts/annotations.jar")) - val targetDir = CleanableStore[repoDir.resolve(intellijRuntimeAnnotations).absolutePath][intellijVersion].use() + val targetDir = File(repoDir, "$intellijRuntimeAnnotations/$intellijVersion") into(targetDir) val ivyFile = File(targetDir, "$intellijRuntimeAnnotations.ivy.xml") @@ -200,20 +181,20 @@ val mergeSources by tasks.creating(Jar::class.java) { val sourcesFile = mergeSources.outputs.files.singleFile val makeIde = if (androidStudioBuild != null) { - buildIvyRepositoryTaskAndRegisterCleanupTask( + buildIvyRepositoryTask( androidStudio, customDepsOrg, customDepsRepoDir, if (androidStudioOs == "mac") - ::skipContentsDirectory - else + ::skipContentsDirectory + else ::skipToplevelDirectory ) } else { val task = if (installIntellijUltimate) { - buildIvyRepositoryTaskAndRegisterCleanupTask(intellijUltimate, customDepsOrg, customDepsRepoDir, null, sourcesFile) + buildIvyRepositoryTask(intellijUltimate, customDepsOrg, customDepsRepoDir, null, sourcesFile) } else { - buildIvyRepositoryTaskAndRegisterCleanupTask(intellij, customDepsOrg, customDepsRepoDir, null, sourcesFile) + buildIvyRepositoryTask(intellij, customDepsOrg, customDepsRepoDir, null, sourcesFile) } task.configure { @@ -223,7 +204,8 @@ val makeIde = if (androidStudioBuild != null) { task } -val buildJpsStandalone = buildIvyRepositoryTaskAndRegisterCleanupTask(jpsStandalone, customDepsOrg, customDepsRepoDir, null, sourcesFile) +val buildJpsStandalone = buildIvyRepositoryTask(jpsStandalone, customDepsOrg, customDepsRepoDir, null, sourcesFile) +val buildNodeJsPlugin = buildIvyRepositoryTask(nodeJSPlugin, customDepsOrg, customDepsRepoDir, ::skipToplevelDirectory, sourcesFile) tasks.named("build") { dependsOn( @@ -233,16 +215,11 @@ tasks.named("build") { makeIntellijAnnotations ) + if (installIntellijUltimate) { + dependsOn(buildNodeJsPlugin) + } } -if (installIntellijUltimate) { - val buildNodeJsPlugin = - buildIvyRepositoryTaskAndRegisterCleanupTask(nodeJSPlugin, customDepsOrg, customDepsRepoDir, ::skipToplevelDirectory, sourcesFile) - tasks.named("build") { dependsOn(buildNodeJsPlugin) } -} - -tasks.named("build") { dependsOn(cleanupDependencies) } - // Task to delete legacy repo locations tasks.register("cleanLegacy") { delete("$projectDir/android-dx") @@ -250,114 +227,93 @@ tasks.register("cleanLegacy") { } tasks.named("clean") { - //TODO specify repos to clean? Use CleanDataTask delete(customDepsRepoDir) } -fun buildIvyRepositoryTaskAndRegisterCleanupTask( +fun buildIvyRepositoryTask( configuration: Configuration, organization: String, repoDirectory: File, pathRemap: ((String) -> String)? = null, sources: File? = null -): TaskProvider { - fun ResolvedArtifact.storeDirectory(): CleanableStore = - CleanableStore[repoDirectory.resolve("$organization/${moduleVersion.id.name}").absolutePath] +) = tasks.register("buildIvyRepositoryFor${configuration.name.capitalize()}") { fun ResolvedArtifact.moduleDirectory(): File = - storeDirectory()[moduleVersion.id.version].use() + File(repoDirectory, "$organization/${moduleVersion.id.name}/${moduleVersion.id.version}") - val buildIvyRepositoryTask = tasks.register("buildIvyRepositoryFor${configuration.name.capitalize()}") { - dependsOn(configuration) - inputs.files(configuration) + dependsOn(configuration) + inputs.files(configuration) - if (verifyDependencyOutput) { - outputs.dir( - provider { - configuration.resolvedConfiguration.resolvedArtifacts.single().moduleDirectory() + if (verifyDependencyOutput) { + outputs.dir(provider { + configuration.resolvedConfiguration.resolvedArtifacts.single().moduleDirectory() + }) + } else { + outputs.upToDateWhen { + configuration.resolvedConfiguration.resolvedArtifacts.single() + .moduleDirectory() + .exists() + } + } + + doFirst { + configuration.resolvedConfiguration.resolvedArtifacts.single().run { + val moduleDirectory = moduleDirectory() + val artifactsDirectory = File(moduleDirectory(), "artifacts") + + logger.info("Unpacking ${file.name} into ${artifactsDirectory.absolutePath}") + copy { + val fileTree = when (extension) { + "tar.gz" -> tarTree(file) + "zip" -> zipTree(file) + else -> error("Unsupported artifact extension: $extension") } + + from(fileTree.matching { + exclude("**/plugins/Kotlin/**") + }) + + into(artifactsDirectory) + + if (pathRemap != null) { + eachFile { + path = pathRemap(path) + } + } + + includeEmptyDirs = false + } + + writeIvyXml( + organization, + moduleVersion.id.name, + moduleVersion.id.version, + moduleVersion.id.name, + File(artifactsDirectory, "lib"), + File(artifactsDirectory, "lib"), + File(moduleDirectory, "ivy"), + *listOfNotNull(sources).toTypedArray() ) - } else { - outputs.upToDateWhen { - configuration.resolvedConfiguration.resolvedArtifacts.single() - .moduleDirectory() - .exists() - } - } - doFirst { - configuration.resolvedConfiguration.resolvedArtifacts.single().run { - val moduleDirectory = moduleDirectory() - val artifactsDirectory = File(moduleDirectory(), "artifacts") - - logger.info("Unpacking ${file.name} into ${artifactsDirectory.absolutePath}") - copy { - val fileTree = when (extension) { - "tar.gz" -> tarTree(file) - "zip" -> zipTree(file) - else -> error("Unsupported artifact extension: $extension") + val pluginsDirectory = File(artifactsDirectory, "plugins") + if (pluginsDirectory.exists()) { + file(File(artifactsDirectory, "plugins")) + .listFiles { file: File -> file.isDirectory } + .forEach { + writeIvyXml( + organization, + it.name, + moduleVersion.id.version, + it.name, + File(it, "lib"), + File(it, "lib"), + File(moduleDirectory, "ivy"), + *listOfNotNull(sources).toTypedArray() + ) } - - from( - fileTree.matching { - exclude("**/plugins/Kotlin/**") - } - ) - - into(artifactsDirectory) - - if (pathRemap != null) { - eachFile { - path = pathRemap(path) - } - } - - includeEmptyDirs = false - } - - writeIvyXml( - organization, - moduleVersion.id.name, - moduleVersion.id.version, - moduleVersion.id.name, - File(artifactsDirectory, "lib"), - File(artifactsDirectory, "lib"), - File(moduleDirectory, "ivy"), - *listOfNotNull(sources).toTypedArray() - ) - - val pluginsDirectory = File(artifactsDirectory, "plugins") - if (pluginsDirectory.exists()) { - file(File(artifactsDirectory, "plugins")) - .listFiles { file: File -> file.isDirectory } - .forEach { - writeIvyXml( - organization, - it.name, - moduleVersion.id.version, - it.name, - File(it, "lib"), - File(it, "lib"), - File(moduleDirectory, "ivy"), - *listOfNotNull(sources).toTypedArray() - ) - } - } } } } - - val cleanupIvyRepositoryTask = tasks.register("cleanupIvyRepositoryFor${configuration.name.capitalize()}") { - cleanableStoreProvider = provider { - configuration.resolvedConfiguration.resolvedArtifacts.single().storeDirectory() - } - } - - cleanupDependencies { - dependsOn(cleanupIvyRepositoryTask) - } - - return buildIvyRepositoryTask } fun writeIvyXml( diff --git a/buildSrc/settings.gradle b/buildSrc/settings.gradle index 8d6cfccd463..f8b95076931 100644 --- a/buildSrc/settings.gradle +++ b/buildSrc/settings.gradle @@ -20,7 +20,7 @@ buildscript { } } dependencies { - classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.13") + classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.12") } } diff --git a/dependencies/kotlin-build-gradle-plugin/src/Bootstrap.kt b/buildSrc/src/main/kotlin/Bootstrap.kt similarity index 77% rename from dependencies/kotlin-build-gradle-plugin/src/Bootstrap.kt rename to buildSrc/src/main/kotlin/Bootstrap.kt index 01215b0ba1d..3d42e2111c0 100644 --- a/dependencies/kotlin-build-gradle-plugin/src/Bootstrap.kt +++ b/buildSrc/src/main/kotlin/Bootstrap.kt @@ -1,20 +1,20 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ +@file:Suppress("unused") // usages in build scripts are not tracked properly + import org.gradle.api.Project +import org.gradle.kotlin.dsl.* import java.net.URI + var Project.bootstrapKotlinVersion: String - get() = property("bootstrapKotlinVersion") as String + get() = this.property("bootstrapKotlinVersion") as String private set(value) { - extensions.extraProperties.set("bootstrapKotlinVersion", value) + this.extra["bootstrapKotlinVersion"] = value } var Project.bootstrapKotlinRepo: String? - get() = property("bootstrapKotlinRepo") as String? + get() = this.property("bootstrapKotlinRepo") as String? private set(value) { - extensions.extraProperties.set("bootstrapKotlinRepo", value) + this.extra["bootstrapKotlinRepo"] = value } val Project.internalKotlinRepo: String? @@ -22,16 +22,16 @@ val Project.internalKotlinRepo: String? "branch:default:any/artifacts/content/internal/repo" fun Project.kotlinBootstrapFrom(defaultSource: BootstrapOption) { - val customVersion = findProperty("bootstrap.custom.kotlin.version") as String? - val customRepo = findProperty("bootstrap.custom.kotlin.repo") as String? - val teamCityVersion = findProperty("bootstrap.teamcity.kotlin.version") as String? - val teamCityBuild = findProperty("bootstrap.teamcity.build.number") as String? - val teamCityProject = findProperty("bootstrap.teamcity.project") as String? + val customVersion = project.findProperty("bootstrap.kotlin.version") as String? + val customRepo = project.findProperty("bootstrap.kotlin.repo") as String? + val teamCityVersion = project.findProperty("bootstrap.teamcity.kotlin.version") as String? + val teamCityBuild = project.findProperty("bootstrap.teamcity.build.number") as String? + val teamCityProject = project.findProperty("bootstrap.teamcity.project") as String? val bootstrapSource = when { - hasProperty("bootstrap.local") -> BootstrapOption.Local( - findProperty("bootstrap.local.version") as String?, - findProperty("bootstrap.local.path") as String? + project.hasProperty("bootstrap.local") -> BootstrapOption.Local( + project.findProperty("bootstrap.local.version") as String?, + project.findProperty("bootstrap.local.path") as String? ) teamCityVersion != null -> BootstrapOption.TeamCity( teamCityVersion, @@ -43,8 +43,8 @@ fun Project.kotlinBootstrapFrom(defaultSource: BootstrapOption) { else -> defaultSource } - bootstrapSource.applyToProject(this) - logger.lifecycle("Using kotlin bootstrap version $bootstrapKotlinVersion from repo $bootstrapKotlinRepo") + bootstrapSource.applyToProject(project) + project.logger.lifecycle("Using kotlin bootstrap version $bootstrapKotlinVersion from repo $bootstrapKotlinRepo") } sealed class BootstrapOption { diff --git a/buildSrc/src/main/kotlin/dependencies.kt b/buildSrc/src/main/kotlin/dependencies.kt index c1c9b8c2355..f05a08d431f 100644 --- a/buildSrc/src/main/kotlin/dependencies.kt +++ b/buildSrc/src/main/kotlin/dependencies.kt @@ -2,12 +2,14 @@ // usages in build scripts are not tracked properly +import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import org.gradle.api.GradleException import org.gradle.api.Project import org.gradle.api.artifacts.ProjectDependency import org.gradle.api.artifacts.dsl.DependencyHandler import org.gradle.api.file.ConfigurableFileCollection import org.gradle.api.file.FileCollection +import org.gradle.api.tasks.AbstractCopyTask import org.gradle.kotlin.dsl.extra import org.gradle.kotlin.dsl.project import java.io.File diff --git a/dependencies/kotlin-build-gradle-plugin/build.gradle.kts b/dependencies/kotlin-build-gradle-plugin/build.gradle.kts index f15ce6358b2..cb81f36660f 100644 --- a/dependencies/kotlin-build-gradle-plugin/build.gradle.kts +++ b/dependencies/kotlin-build-gradle-plugin/build.gradle.kts @@ -4,7 +4,7 @@ plugins { } group = "org.jetbrains.kotlin" -version = "0.0.13" +version = "0.0.12" repositories { mavenCentral() diff --git a/dependencies/kotlin-build-gradle-plugin/src/BuildProperties.kt b/dependencies/kotlin-build-gradle-plugin/src/BuildProperties.kt index cb10aa58d2d..a53f9f036f0 100644 --- a/dependencies/kotlin-build-gradle-plugin/src/BuildProperties.kt +++ b/dependencies/kotlin-build-gradle-plugin/src/BuildProperties.kt @@ -19,24 +19,16 @@ class KotlinBuildProperties( private val propertiesProvider: PropertiesProvider ) { private val localProperties: Properties = Properties() - private val rootProperties: Properties = Properties() init { - loadPropertyFile("local.properties", localProperties) - loadPropertyFile("gradle.properties", rootProperties) - } - - private fun loadPropertyFile(fileName: String, propertiesDestination: Properties) { - val propertiesFile = propertiesProvider.rootProjectDir.resolve(fileName) - if (propertiesFile.isFile) { - propertiesFile.reader().use(propertiesDestination::load) + val localPropertiesFile = propertiesProvider.rootProjectDir.resolve("local.properties") + if (localPropertiesFile.isFile) { + localPropertiesFile.reader().use(localProperties::load) } } private operator fun get(key: String): Any? = localProperties.getProperty(key) ?: propertiesProvider.getProperty(key) - private fun getLocalOrRoot(key: String): Any? = get(key) ?: rootProperties.getProperty(key) - private fun getBoolean(key: String, default: Boolean = false): Boolean = this[key]?.toString()?.trim()?.toBoolean() ?: default @@ -104,10 +96,6 @@ class KotlinBuildProperties( val buildCacheUser: String? = get("kotlin.build.cache.user") as String? val buildCachePassword: String? = get("kotlin.build.cache.password") as String? - - val kotlinBootstrapVersion: String? = getLocalOrRoot("bootstrap.kotlin.version") as String? - - val defaultSnapshotVersion: String? = getLocalOrRoot("defaultSnapshotVersion") as String? } private const val extensionName = "kotlinBuildProperties" diff --git a/gradle.properties b/gradle.properties index bbe3dcfefb2..bd0786dd919 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,17 +1,13 @@ org.gradle.jvmargs=-Duser.country=US -Dkotlin.daemon.jvm.options=-Xmx1600m -Dfile.encoding=UTF-8 cacheRedirectorEnabled=true -defaultSnapshotVersion=1.4-SNAPSHOT kotlin.compiler.effectSystemEnabled=true kotlin.compiler.newInferenceEnabled=true #maven.repository.mirror=http://repository.jetbrains.com/remote-repos/ -#bootstrap.custom.kotlin.repo=https://dl.bintray.com/kotlin/kotlin-dev -#bootstrap.custom.kotlin.version=1.1.50-dev-1451 -bootstrap.kotlin.version=1.4.0-dev-1148 - +#bootstrap.kotlin.repo=https://dl.bintray.com/kotlin/kotlin-dev +#bootstrap.kotlin.version=1.1.50-dev-1451 #signingRequired=true -#org.gradle.debug=true ## The following properties can be added to your local.properties file to customize the build: diff --git a/gradle.properties.as35 b/gradle.properties.as35 new file mode 100644 index 00000000000..a14f118a680 --- /dev/null +++ b/gradle.properties.as35 @@ -0,0 +1,24 @@ +org.gradle.jvmargs=-Duser.country=US -Dkotlin.daemon.jvm.options=-Xmx1600m -Dfile.encoding=UTF-8 + +cacheRedirectorEnabled=true + +kotlin.compiler.effectSystemEnabled=true +kotlin.compiler.newInferenceEnabled=true +#maven.repository.mirror=http://repository.jetbrains.com/remote-repos/ +#bootstrap.kotlin.repo=https://dl.bintray.com/kotlin/kotlin-dev +#bootstrap.kotlin.version=1.1.50-dev-1451 +#signingRequired=true + +intellijUltimateEnabled=false +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 \ No newline at end of file diff --git a/gradle.properties.as36 b/gradle.properties.as36 new file mode 100644 index 00000000000..a14f118a680 --- /dev/null +++ b/gradle.properties.as36 @@ -0,0 +1,24 @@ +org.gradle.jvmargs=-Duser.country=US -Dkotlin.daemon.jvm.options=-Xmx1600m -Dfile.encoding=UTF-8 + +cacheRedirectorEnabled=true + +kotlin.compiler.effectSystemEnabled=true +kotlin.compiler.newInferenceEnabled=true +#maven.repository.mirror=http://repository.jetbrains.com/remote-repos/ +#bootstrap.kotlin.repo=https://dl.bintray.com/kotlin/kotlin-dev +#bootstrap.kotlin.version=1.1.50-dev-1451 +#signingRequired=true + +intellijUltimateEnabled=false +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 \ No newline at end of file diff --git a/gradle.properties.as40 b/gradle.properties.as40 new file mode 100644 index 00000000000..a14f118a680 --- /dev/null +++ b/gradle.properties.as40 @@ -0,0 +1,24 @@ +org.gradle.jvmargs=-Duser.country=US -Dkotlin.daemon.jvm.options=-Xmx1600m -Dfile.encoding=UTF-8 + +cacheRedirectorEnabled=true + +kotlin.compiler.effectSystemEnabled=true +kotlin.compiler.newInferenceEnabled=true +#maven.repository.mirror=http://repository.jetbrains.com/remote-repos/ +#bootstrap.kotlin.repo=https://dl.bintray.com/kotlin/kotlin-dev +#bootstrap.kotlin.version=1.1.50-dev-1451 +#signingRequired=true + +intellijUltimateEnabled=false +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 \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 770ef7cb100..db5cbf442a0 100644 --- a/settings.gradle +++ b/settings.gradle @@ -27,7 +27,7 @@ buildscript { } } dependencies { - classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.13") + classpath("org.jetbrains.kotlin:kotlin-build-gradle-plugin:0.0.12") } }