4f69f61ef7
File separator are not escaped now, as there's no need to escape / character in JSON strings.
38 lines
946 B
Kotlin
38 lines
946 B
Kotlin
|
|
description = "Extension for saving imports of .kt-files in JSON"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
val kotlinxSerializationVersion = "0.14.0"
|
|
|
|
dependencies {
|
|
api(project(":compiler:frontend.java"))
|
|
api(project(":compiler:plugin-api"))
|
|
compileOnly("org.jetbrains.kotlinx", "kotlinx-serialization-runtime", kotlinxSerializationVersion) { isTransitive = false }
|
|
|
|
compileOnly(intellijCore())
|
|
|
|
testApi(projectTests(":compiler:tests-common"))
|
|
testRuntimeOnly(intellijCore())
|
|
testRuntimeOnly("org.jetbrains.kotlinx", "kotlinx-serialization-runtime", kotlinxSerializationVersion)
|
|
|
|
embedded("org.jetbrains.kotlinx", "kotlinx-serialization-runtime", kotlinxSerializationVersion) { isTransitive = false }
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
dependsOn(":dist")
|
|
}
|
|
|
|
optInToExperimentalCompilerApi()
|
|
|
|
runtimeJar()
|