a42f607ecf
With gradle > 5.0 `publish()` helper call should be done before `noDefaultJar()` or any other artifact hacks, otherwise singing plugin doesn't sign any jars
32 lines
516 B
Kotlin
32 lines
516 B
Kotlin
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
jvmTarget = "1.6"
|
|
|
|
dependencies {
|
|
compile(kotlinStdlib())
|
|
compileOnly(project(":kotlin-reflect-api"))
|
|
compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
|
|
runtime(project(":kotlin-reflect"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
publish()
|
|
|
|
val jar = runtimeJar()
|
|
val sourcesJar = sourcesJar()
|
|
val javadocJar = javadocJar()
|
|
|
|
dist()
|
|
|
|
ideaPlugin {
|
|
from(jar, sourcesJar)
|
|
}
|