Convert kotlin-gradle-plugin-model build script: step 2
This commit is contained in:
@@ -1,21 +1,26 @@
|
|||||||
apply plugin: 'kotlin'
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
import org.jetbrains.kotlin.pill.PillExtension
|
||||||
|
|
||||||
configureJvmProject(project)
|
plugins {
|
||||||
configurePublishing(project)
|
kotlin("jvm")
|
||||||
|
maven
|
||||||
repositories {
|
|
||||||
mavenLocal()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
standardPublicJars()
|
||||||
|
publish()
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':kotlin-stdlib')
|
compile(project(":kotlin-stdlib"))
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
tasks {
|
||||||
archives sourcesJar
|
withType<KotlinCompile> {
|
||||||
archives javadocJar
|
kotlinOptions.languageVersion = "1.2"
|
||||||
}
|
kotlinOptions.apiVersion = "1.2"
|
||||||
|
kotlinOptions.freeCompilerArgs += listOf("-Xskip-metadata-version-check")
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
named<Jar>("jar") {
|
||||||
manifestAttributes(manifest, project)
|
callGroovy("manifestAttributes", manifest, project)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user