mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
CORDA-3698: Require no classifier for Open Core and DJVM-related modules. (#6132)
* ENT-4967: Require no classifier for corda-node-djvm, corda-deserializers-djvm. * Also remove classifiers from core, serialization and finance-contracts. * Compile corda-serialization-djvm for Java 8 and remove its classifier.
This commit is contained in:
parent
e93e5f28a1
commit
39cc5e3403
@ -101,7 +101,8 @@ task copyQuasarJar(type: Copy) {
|
|||||||
|
|
||||||
jar {
|
jar {
|
||||||
finalizedBy(copyQuasarJar)
|
finalizedBy(copyQuasarJar)
|
||||||
baseName 'corda-core'
|
archiveBaseName = 'corda-core'
|
||||||
|
archiveClassifier = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
|
@ -6,6 +6,7 @@ apply plugin: 'net.corda.plugins.publish-utils'
|
|||||||
apply plugin: 'net.corda.plugins.quasar-utils'
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
||||||
apply plugin: 'net.corda.plugins.cordapp'
|
apply plugin: 'net.corda.plugins.cordapp'
|
||||||
apply plugin: 'com.jfrog.artifactory'
|
apply plugin: 'com.jfrog.artifactory'
|
||||||
|
apply from: "${rootProject.projectDir}/java8.gradle"
|
||||||
|
|
||||||
description 'Corda finance module - contracts'
|
description 'Corda finance module - contracts'
|
||||||
|
|
||||||
@ -31,7 +32,8 @@ configurations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
baseName 'corda-finance-contracts'
|
archiveBaseName = 'corda-finance-contracts'
|
||||||
|
archiveClassifier = ''
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Corda-Revision': 'n/a')
|
attributes('Corda-Revision': 'n/a')
|
||||||
attributes('Corda-Vendor': 'Corda Open Source')
|
attributes('Corda-Vendor': 'Corda Open Source')
|
||||||
|
22
java8.gradle
Normal file
22
java8.gradle
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import static org.gradle.api.JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Gradle script plugin: Configure a module such that Java and Kotlin
|
||||||
|
* are always compiled for Java 8.
|
||||||
|
*/
|
||||||
|
apply plugin: 'kotlin'
|
||||||
|
|
||||||
|
tasks.withType(AbstractCompile) {
|
||||||
|
// This is a bit ugly, but Gradle isn't recognising the KotlinCompile task
|
||||||
|
// as it does the built-in JavaCompile task.
|
||||||
|
if (it.class.name.startsWith('org.jetbrains.kotlin.gradle.tasks.KotlinCompile')) {
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = VERSION_1_8
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
sourceCompatibility = VERSION_1_8
|
||||||
|
targetCompatibility = VERSION_1_8
|
||||||
|
}
|
@ -13,6 +13,7 @@ dependencies {
|
|||||||
|
|
||||||
jar {
|
jar {
|
||||||
archiveBaseName = 'corda-node-djvm'
|
archiveBaseName = 'corda-node-djvm'
|
||||||
|
archiveClassifier = ''
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'net.corda.node.djvm')
|
attributes('Automatic-Module-Name': 'net.corda.node.djvm')
|
||||||
attributes('Sealed': true)
|
attributes('Sealed': true)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
import static org.gradle.api.JavaVersion.VERSION_1_8
|
import static org.gradle.api.JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
@ -8,6 +9,11 @@ plugins {
|
|||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The DJVM only supports Java 8 byte-code, so the tests must
|
||||||
|
// be compiled for Java 8. The main artifact is only compiled
|
||||||
|
// for Java 8 because it belongs to "Open Core".
|
||||||
|
apply from: "${rootProject.projectDir}/java8.gradle"
|
||||||
|
|
||||||
description 'Serialization support for the DJVM'
|
description 'Serialization support for the DJVM'
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@ -41,20 +47,9 @@ dependencies {
|
|||||||
sandboxTesting "org.slf4j:slf4j-nop:$slf4j_version"
|
sandboxTesting "org.slf4j:slf4j-nop:$slf4j_version"
|
||||||
}
|
}
|
||||||
|
|
||||||
// The DJVM only supports Java 8 byte-code.
|
|
||||||
compileTestJava {
|
|
||||||
sourceCompatibility = VERSION_1_8
|
|
||||||
targetCompatibility = VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
compileTestKotlin {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = VERSION_1_8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
archiveBaseName = 'corda-serialization-djvm'
|
archiveBaseName = 'corda-serialization-djvm'
|
||||||
|
archiveClassifier = ''
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'net.corda.serialization.djvm')
|
attributes('Automatic-Module-Name': 'net.corda.serialization.djvm')
|
||||||
attributes('Sealed': true)
|
attributes('Sealed': true)
|
||||||
|
@ -17,6 +17,7 @@ dependencies {
|
|||||||
|
|
||||||
jar {
|
jar {
|
||||||
archiveBaseName = 'corda-deserializers-djvm'
|
archiveBaseName = 'corda-deserializers-djvm'
|
||||||
|
archiveClassifier = ''
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'net.corda.serialization.djvm.deserializers')
|
attributes('Automatic-Module-Name': 'net.corda.serialization.djvm.deserializers')
|
||||||
attributes('Sealed': true)
|
attributes('Sealed': true)
|
||||||
|
@ -63,7 +63,8 @@ artifacts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
baseName 'corda-serialization'
|
archiveBaseName = 'corda-serialization'
|
||||||
|
archiveClassifier = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
publish {
|
publish {
|
||||||
|
Loading…
Reference in New Issue
Block a user