Make all dependencies to idea sdk intransitive
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
e76cd802d8
commit
a4f28cd94f
@@ -13,6 +13,10 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'org.jetbrains.intellij'
|
||||
}
|
||||
|
||||
configureJvmProject(project)
|
||||
configurePublishing(project)
|
||||
|
||||
@@ -22,6 +26,13 @@ repositories {
|
||||
maven { url 'https://maven.google.com' }
|
||||
}
|
||||
|
||||
intellij {
|
||||
version = rootProject.ext["versions.intellij"]
|
||||
instrumentCode = false
|
||||
configureDefaultDependencies = false
|
||||
extraDependencies = ['intellij-core']
|
||||
}
|
||||
|
||||
configurations {
|
||||
agp25CompileOnly
|
||||
}
|
||||
@@ -65,6 +76,12 @@ dependencies {
|
||||
testCompileOnly project(':kotlin-annotation-processing-gradle')
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly intellijExtra('intellij-core')
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(project.compileKotlin.class) {
|
||||
kotlinOptions.jdkHome = JDK_18
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user