Provide a method for common publishing configuration.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user