Corda publications and JARs now have cord or corda at the start. (#749)

Core corda publications and JARs now have cord or corda at the start (excluding gradle plugins). Removed an unnecessary dependency on test-utils in node-schemas to prevent an evaluation order bug in gradle.
This commit is contained in:
Clinton 2017-06-06 15:05:47 +01:00 committed by GitHub
parent f4321affad
commit 08cbcac40c
16 changed files with 108 additions and 10 deletions

View File

@ -254,7 +254,7 @@ bintrayConfig {
projectUrl = 'https://github.com/corda/corda' projectUrl = 'https://github.com/corda/corda'
gpgSign = true gpgSign = true
gpgPassphrase = System.getenv('CORDA_BINTRAY_GPG_PASSPHRASE') gpgPassphrase = System.getenv('CORDA_BINTRAY_GPG_PASSPHRASE')
publications = ['jfx', 'mock', 'rpc', 'core', 'corda', 'cordform-common', 'corda-webserver', 'finance', 'node', 'node-api', 'node-schemas', 'test-utils', 'jackson', 'verifier', 'webserver'] publications = ['corda-jfx', 'corda-mock', 'corda-rpc', 'corda-core', 'corda', 'cordform-common', 'corda-finance', 'corda-node', 'corda-node-api', 'corda-node-schemas', 'corda-test-utils', 'corda-jackson', 'corda-verifier', 'corda-webserver-impl', 'corda-webserver']
license { license {
name = 'Apache-2.0' name = 'Apache-2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0' url = 'https://www.apache.org/licenses/LICENSE-2.0'

View File

@ -23,3 +23,11 @@ dependencies {
testCompile "com.pholser:junit-quickcheck-core:$quickcheck_version" testCompile "com.pholser:junit-quickcheck-core:$quickcheck_version"
testCompile "com.pholser:junit-quickcheck-generators:$quickcheck_version" testCompile "com.pholser:junit-quickcheck-generators:$quickcheck_version"
} }
jar {
baseName 'corda-jackson'
}
publish {
name = jar.baseName
}

View File

@ -55,3 +55,11 @@ task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath classpath = sourceSets.integrationTest.runtimeClasspath
} }
jar {
baseName 'corda-jfx'
}
publish {
name = jar.baseName
}

View File

@ -23,3 +23,11 @@ dependencies {
testCompile project(':test-utils') testCompile project(':test-utils')
} }
jar {
baseName 'corda-mock'
}
publish {
name = jar.baseName
}

View File

@ -78,3 +78,11 @@ task smokeTest(type: Test) {
classpath = sourceSets.smokeTest.runtimeClasspath classpath = sourceSets.smokeTest.runtimeClasspath
systemProperties['build.dir'] = buildDir systemProperties['build.dir'] = buildDir
} }
jar {
baseName 'corda-rpc'
}
publish {
name = jar.baseName
}

View File

@ -1,4 +1,4 @@
gradlePluginsVersion=0.12.3 gradlePluginsVersion=0.12.4
kotlinVersion=1.1.2 kotlinVersion=1.1.2
guavaVersion=21.0 guavaVersion=21.0
bouncycastleVersion=1.56 bouncycastleVersion=1.56

View File

@ -91,3 +91,11 @@ task testJar(type: Jar) {
artifacts { artifacts {
testArtifacts testJar testArtifacts testJar
} }
jar {
baseName 'corda-core'
}
publish {
name = jar.baseName
}

View File

@ -29,3 +29,11 @@ configurations.testCompile {
// TODO: Remove this exclusion once junit-quickcheck 0.8 is released. // TODO: Remove this exclusion once junit-quickcheck 0.8 is released.
exclude group: 'javassist', module: 'javassist' exclude group: 'javassist', module: 'javassist'
} }
jar {
baseName 'corda-finance'
}
publish {
name = jar.baseName
}

View File

@ -60,11 +60,6 @@ class PublishTasks implements Plugin<Project> {
void configureMavenPublish(BintrayConfigExtension bintrayConfig) { void configureMavenPublish(BintrayConfigExtension bintrayConfig) {
project.apply([plugin: 'maven-publish']) project.apply([plugin: 'maven-publish'])
project.publishing.publications.create(publishName, MavenPublication) { project.publishing.publications.create(publishName, MavenPublication) {
if(!publishConfig.disableDefaultJar && !publishConfig.publishWar) {
from project.components.java
} else if(publishConfig.publishWar) {
from project.components.web
}
groupId project.group groupId project.group
artifactId publishName artifactId publishName
@ -76,6 +71,12 @@ class PublishTasks implements Plugin<Project> {
delegate.artifact it delegate.artifact it
} }
if (!publishConfig.disableDefaultJar && !publishConfig.publishWar) {
from project.components.java
} else if (publishConfig.publishWar) {
from project.components.web
}
extendPomForMavenCentral(pom, bintrayConfig) extendPomForMavenCentral(pom, bintrayConfig)
} }
project.task("install", dependsOn: "publishToMavenLocal") project.task("install", dependsOn: "publishToMavenLocal")

View File

@ -3,4 +3,5 @@ include 'publish-utils'
include 'quasar-utils' include 'quasar-utils'
include 'cordformation' include 'cordformation'
include 'cordform-common' include 'cordform-common'
project(':cordform-common').projectDir = new File("$settingsDir/../cordform-common") // TODO: Look into `includeFlat`
project(':cordform-common').projectDir = new File("$settingsDir/../cordform-common")

View File

@ -31,3 +31,11 @@ dependencies {
testCompile "org.assertj:assertj-core:${assertj_version}" testCompile "org.assertj:assertj-core:${assertj_version}"
testCompile project(':test-utils') testCompile project(':test-utils')
} }
jar {
baseName 'corda-node-api'
}
publish {
name = jar.baseName
}

View File

@ -9,7 +9,6 @@ dependencies {
compile project(':core') compile project(':core')
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version" testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "junit:junit:$junit_version" testCompile "junit:junit:$junit_version"
testCompile project(':test-utils')
// Requery: SQL based query & persistence for Kotlin // Requery: SQL based query & persistence for Kotlin
kapt "io.requery:requery-processor:$requery_version" kapt "io.requery:requery-processor:$requery_version"
@ -24,4 +23,12 @@ sourceSets {
srcDir "$buildDir/generated/source/kapt/main" srcDir "$buildDir/generated/source/kapt/main"
} }
} }
}
jar {
baseName 'corda-node-schemas'
}
publish {
name = jar.baseName
} }

View File

@ -174,3 +174,11 @@ task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath classpath = sourceSets.integrationTest.runtimeClasspath
} }
jar {
baseName 'corda-node'
}
publish {
name = jar.baseName
}

View File

@ -34,3 +34,11 @@ dependencies {
// OkHTTP: Simple HTTP library. // OkHTTP: Simple HTTP library.
compile "com.squareup.okhttp3:okhttp:$okhttp_version" compile "com.squareup.okhttp3:okhttp:$okhttp_version"
} }
jar {
baseName 'corda-test-utils'
}
publish {
name = jar.baseName
}

View File

@ -67,4 +67,13 @@ task integrationTest(type: Test) {
classpath = sourceSets.integrationTest.runtimeClasspath classpath = sourceSets.integrationTest.runtimeClasspath
} }
build.dependsOn standaloneJar artifacts {
publish standaloneJar {
classifier ""
}
}
publish {
name = 'corda-verifier'
disableDefaultJar = true
}

View File

@ -65,3 +65,11 @@ task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath classpath = sourceSets.integrationTest.runtimeClasspath
} }
jar {
baseName 'corda-webserver-impl'
}
publish {
name = jar.baseName
}