60 lines
1.6 KiB
Groovy
60 lines
1.6 KiB
Groovy
apply plugin: 'kotlin'
|
|
|
|
configureJvmProject(project)
|
|
configurePublishing(project)
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
maven { url 'http://repository.jetbrains.com/utils' }
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':kotlin-gradle-plugin-api')
|
|
|
|
compile project(':kotlin-stdlib')
|
|
compileOnly project(path: ':kotlin-compiler-embeddable', configuration: 'runtimeJar')
|
|
compileOnly project(':kotlin-allopen-compiler-plugin')
|
|
|
|
compileOnly 'org.jetbrains.kotlin:gradle-api:1.6'
|
|
}
|
|
|
|
def originalSrc = "$kotlin_root/plugins/allopen/allopen-cli/src"
|
|
//def targetSrc = file("$buildDir/allopen-target-src")
|
|
//
|
|
//task preprocessSources(type: Copy) {
|
|
// from originalSrc
|
|
// into targetSrc
|
|
// filter { it.replaceAll('(?<!\\.)com\\.intellij', 'org.jetbrains.kotlin.com.intellij') }
|
|
//}
|
|
|
|
//sourceSets.main.java.srcDirs += originalSrc
|
|
|
|
//compileKotlin.dependsOn preprocessSources
|
|
|
|
evaluationDependsOn(":kotlin-allopen-compiler-plugin")
|
|
|
|
jar {
|
|
// from(originalSrc) { include("META-INF/**") }
|
|
from(project(":kotlin-allopen-compiler-plugin").sourceSets.main.output.classesDirs)
|
|
from(project(":kotlin-allopen-compiler-plugin").sourceSets.main.output.resourcesDir)
|
|
manifestAttributes(manifest, project)
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
pluginBundle {
|
|
plugins {
|
|
kotlinAllopenPlugin {
|
|
id = 'org.jetbrains.kotlin.plugin.allopen'
|
|
description = displayName = 'Kotlin All Open compiler plugin'
|
|
}
|
|
kotlinSpringPlugin {
|
|
id = 'org.jetbrains.kotlin.plugin.spring'
|
|
description = displayName = 'Kotlin Spring compiler plugin'
|
|
}
|
|
}
|
|
} |