Extract manifest attribute specification to helper function.
Specify default jdkHome for all projects.
This commit is contained in:
@@ -61,6 +61,8 @@ subprojects {
|
||||
compileKotlin.compilerJarFile = project.file("${rootDir}/../dist/kotlinc/lib/kotlin-compiler.jar")
|
||||
compileTestKotlin.compilerJarFile = project.file("${rootDir}/../dist/kotlinc/lib/kotlin-compiler.jar")
|
||||
|
||||
compileKotlin.kotlinOptions.jdkHome = JDK_16
|
||||
|
||||
signing {
|
||||
required { project.ext.has('signing.keyId') }
|
||||
sign configurations.archives
|
||||
@@ -81,3 +83,10 @@ subprojects {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static def manifestAttributes(Manifest manifest, Project project, String component) {
|
||||
manifest.attributes \
|
||||
'Kotlin-Runtime-Component': component,
|
||||
'Kotlin-Version': "${project.kotlin_language_version}",
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
@@ -19,12 +19,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes \
|
||||
'Kotlin-Runtime-Component': 'Core',
|
||||
'Kotlin-Version': "$kotlin_language_version",
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
manifestAttributes(manifest, project, 'Core')
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
@@ -20,12 +20,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes \
|
||||
'Kotlin-Runtime-Component': 'Core',
|
||||
'Kotlin-Version': "$kotlin_language_version",
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
manifestAttributes(manifest, project, 'Core')
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
@@ -22,12 +22,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes \
|
||||
'Kotlin-Runtime-Component': 'Core',
|
||||
'Kotlin-Version': "$kotlin_language_version",
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
manifestAttributes(manifest, project, 'Core')
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
@@ -19,11 +19,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Kotlin-Runtime-Component': 'Core',
|
||||
'Kotlin-Version': "$kotlin_language_version",
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
manifestAttributes(manifest, project, 'Core')
|
||||
from("${rootDir}/../dist/builtins")
|
||||
}
|
||||
|
||||
|
||||
@@ -14,10 +14,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Kotlin-Runtime-Component': 'Core',
|
||||
'Implementation-Title': "${project.description ?: project.name}"
|
||||
}
|
||||
manifestAttributes(manifest, project, 'Core')
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
Reference in New Issue
Block a user