21 lines
597 B
Kotlin
21 lines
597 B
Kotlin
|
|
import org.gradle.jvm.tasks.Jar
|
|
|
|
apply { plugin("java") }
|
|
|
|
tasks.withType<Jar> {
|
|
setupRuntimeJar("Kotlin Formatter")
|
|
archiveName = "kotlin-formatter.jar"
|
|
dependsOn(":idea:formatter:classes")
|
|
project(":idea:formatter").let { p ->
|
|
p.pluginManager.withPlugin("java") {
|
|
from(p.the<JavaPluginConvention>().sourceSets.getByName("main").output)
|
|
}
|
|
}
|
|
from(fileTree("$rootDir/idea/formatter")) { include("src/**") } // Eclipse formatter sources navigation depends on this
|
|
}
|
|
|
|
configureKotlinProjectSources() // no sources
|
|
configureKotlinProjectNoTests()
|
|
|