Change previous gradle build for compatibility with the centralized build

incompatible with the main build yet
This commit is contained in:
Ilya Chernikov
2017-08-02 12:22:04 +02:00
parent 61dfb75e0e
commit 6b22282ad4
15 changed files with 129 additions and 81 deletions
+36
View File
@@ -0,0 +1,36 @@
configure([project(':kotlin-gradle-plugin'), project(':kotlin-allopen'), project(':kotlin-noarg')]) { project ->
apply plugin: 'com.gradle.plugin-publish'
if (project.hasProperty('publishPluginsVersion')) {
configurations.archives.artifacts.all {
version = project.getProperty('publishPluginsVersion')
}
}
if (project.hasProperty("${project.name}-jar")) {
println("Using pre-built artifact for ${project.name}")
configurations.archives.artifacts.clear()
artifacts {
archives(file(project.getProperty("${project.name}-jar"))) {
name project.name
}
}
}
publishPlugins.doFirst {
assert !kotlin_version.contains('SNAPSHOT')
}
pluginBundle {
website = 'https://kotlinlang.org/'
vcsUrl = 'https://github.com/JetBrains/kotlin/'
description = 'Kotlin plugins for Gradle'
tags = ['kotlin']
mavenCoordinates {
groupId = "org.jetbrains.kotlin"
}
}
}