66 lines
1.6 KiB
Groovy
66 lines
1.6 KiB
Groovy
apply plugin: 'kotlin'
|
|
|
|
configureJvmProject(project)
|
|
configurePublishing(project)
|
|
|
|
compileJava {
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
options.fork = false
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
maven { url 'http://repository.jetbrains.com/utils' }
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':kotlin-gradle-plugin-api')
|
|
|
|
compile project(':kotlin-stdlib')
|
|
compileOnly project(':compiler')
|
|
compileOnly project(':kotlin-noarg-compiler-plugin')
|
|
|
|
compileOnly 'org.jetbrains.kotlin:gradle-api:1.6'
|
|
}
|
|
|
|
def originalSrc = "$kotlin_root/plugins/noarg/noarg-cli/src"
|
|
//def targetSrc = file("$buildDir/noarg-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-noarg-compiler-plugin")
|
|
|
|
jar {
|
|
// from(originalSrc) { include("META-INF/**") }
|
|
from(project(":kotlin-noarg-compiler-plugin").sourceSets.main.output.classesDirs)
|
|
from(project(":kotlin-noarg-compiler-plugin").sourceSets.main.output.resourcesDir)
|
|
manifestAttributes(manifest, project)
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
pluginBundle {
|
|
plugins {
|
|
kotlinNoargPlugin {
|
|
id = 'org.jetbrains.kotlin.plugin.noarg'
|
|
description = displayName = 'Kotlin No Arg compiler plugin'
|
|
}
|
|
kotlinJpaPlugin {
|
|
id = 'org.jetbrains.kotlin.plugin.jpa'
|
|
description = displayName = 'Kotlin JPA compiler plugin'
|
|
}
|
|
}
|
|
} |