Provide a method for common publishing configuration.

This commit is contained in:
Ilya Gorbunov
2017-03-29 06:50:18 +03:00
parent 92ef26606b
commit 0b2cadc638
14 changed files with 84 additions and 28 deletions
+3 -2
View File
@@ -16,6 +16,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'kotlin'
configureJvmProject(project)
configurePublishing(project)
def core = "${rootDir}/../core"
@@ -99,7 +100,7 @@ task reflectShadowJar(type: ShadowJar) {
createScriptTask(project, "stripMetadata") {
dependsOn reflectShadowJar
def inputJar = reflectShadowJar.archivePath
def outputJar = "${buildDir}/libs/kotlin-reflect-stripped.jar"
def outputJar = "${libsDir}/kotlin-reflect-stripped.jar"
inputs.file(inputJar)
outputs.file(outputJar)
args += [
@@ -113,7 +114,7 @@ createScriptTask(project, "stripMetadata") {
def mainArchiveName = "${archivesBaseName}-${project.version}.jar"
def outputJarPath = "${buildDir}/libs/${mainArchiveName}"
def outputJarPath = "${libsDir}/${mainArchiveName}"
def rtJar = ['jre/lib/rt.jar', '../Classes/classes.jar'].collect { new File(JDK_16, it) }.find { it.isFile() }
task proguard(type: proguard.gradle.ProGuardTask) {
+4 -3
View File
@@ -10,14 +10,15 @@ buildscript {
}
}
apply plugin: 'base'
apply plugin: 'com.github.johnrengelman.shadow'
def protobufVersion = "2.6.1"
def outputJarPath = "$buildDir/libs/${archivesBaseName}-${protobufVersion}.jar"
version = protobufVersion
def outputJarPath = "${libsDir}/${archivesBaseName}-${protobufVersion}.jar"
configurations {
protobuf
protobufSrc
+1
View File
@@ -3,6 +3,7 @@ description 'Kotlin Runtime (deprecated, use koltin-stdlib artifact instead)'
apply plugin: 'kotlin'
configureJvmProject(project)
configurePublishing(project)
dependencies {
compile group: 'org.jetbrains', name: 'annotations', version:'13.0'
@@ -3,6 +3,7 @@ description 'Kotlin Script Runtime'
apply plugin: 'kotlin'
configureJvmProject(project)
configurePublishing(project)
dependencies {
compileOnly project(':kotlin-stdlib')