JPS build: add idea settings to build.gradle.kts
#KT-29323 Fixed
This commit is contained in:
@@ -5,6 +5,8 @@ import org.gradle.api.file.FileCollection
|
|||||||
import org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
import proguard.gradle.ProGuardTask
|
import proguard.gradle.ProGuardTask
|
||||||
|
import org.gradle.kotlin.dsl.*
|
||||||
|
import org.jetbrains.gradle.ext.ActionDelegationConfig.TestRunner.*
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
extra["defaultSnapshotVersion"] = "1.3-SNAPSHOT"
|
extra["defaultSnapshotVersion"] = "1.3-SNAPSHOT"
|
||||||
@@ -35,6 +37,7 @@ plugins {
|
|||||||
`build-scan` version "1.15"
|
`build-scan` version "1.15"
|
||||||
idea
|
idea
|
||||||
id("jps-compatible")
|
id("jps-compatible")
|
||||||
|
id("org.jetbrains.gradle.plugin.idea-ext")
|
||||||
}
|
}
|
||||||
|
|
||||||
pill {
|
pill {
|
||||||
@@ -807,3 +810,37 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
apply(mapOf("plugin" to "idea"))
|
||||||
|
}
|
||||||
|
|
||||||
|
val isJpsBuildEnabled = findProperty("jpsBuild")?.toString() == "true"
|
||||||
|
if (isJpsBuildEnabled) {
|
||||||
|
afterEvaluate {
|
||||||
|
allprojects {
|
||||||
|
idea {
|
||||||
|
module {
|
||||||
|
inheritOutputDirs = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rootProject.idea {
|
||||||
|
project {
|
||||||
|
settings {
|
||||||
|
compiler {
|
||||||
|
processHeapSize = 2000
|
||||||
|
addNotNullAssertions = true
|
||||||
|
parallelCompilation = true
|
||||||
|
}
|
||||||
|
|
||||||
|
delegateActions {
|
||||||
|
delegateBuildRunToGradle = false
|
||||||
|
testRunner = PLATFORM
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -87,6 +87,7 @@ repositories {
|
|||||||
|
|
||||||
jcenter()
|
jcenter()
|
||||||
maven("https://jetbrains.bintray.com/intellij-third-party-dependencies/")
|
maven("https://jetbrains.bintray.com/intellij-third-party-dependencies/")
|
||||||
|
maven("https://plugins.gradle.org/m2/")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -97,6 +98,8 @@ dependencies {
|
|||||||
|
|
||||||
compile("com.github.jengelman.gradle.plugins:shadow:${property("versions.shadow")}")
|
compile("com.github.jengelman.gradle.plugins:shadow:${property("versions.shadow")}")
|
||||||
compile("org.jetbrains.intellij.deps:asm-all:7.0")
|
compile("org.jetbrains.intellij.deps:asm-all:7.0")
|
||||||
|
|
||||||
|
compile("gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:0.4.2")
|
||||||
}
|
}
|
||||||
|
|
||||||
samWithReceiver {
|
samWithReceiver {
|
||||||
|
|||||||
Reference in New Issue
Block a user