Skip to content

Commit

Permalink
Corda publications and JARs now have cord or corda at the start. (cor…
Browse files Browse the repository at this point in the history
…da#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.
  • Loading branch information
Clintonio authored Jun 6, 2017
1 parent f4321af commit 08cbcac
Show file tree
Hide file tree
Showing 16 changed files with 108 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ bintrayConfig {
projectUrl = 'https://github.com/corda/corda'
gpgSign = true
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 {
name = 'Apache-2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0'
Expand Down
8 changes: 8 additions & 0 deletions client/jackson/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ dependencies {
testCompile "com.pholser:junit-quickcheck-core:$quickcheck_version"
testCompile "com.pholser:junit-quickcheck-generators:$quickcheck_version"
}

jar {
baseName 'corda-jackson'
}

publish {
name = jar.baseName
}
8 changes: 8 additions & 0 deletions client/jfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,11 @@ task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
}

jar {
baseName 'corda-jfx'
}

publish {
name = jar.baseName
}
8 changes: 8 additions & 0 deletions client/mock/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ dependencies {

testCompile project(':test-utils')
}

jar {
baseName 'corda-mock'
}

publish {
name = jar.baseName
}
8 changes: 8 additions & 0 deletions client/rpc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,11 @@ task smokeTest(type: Test) {
classpath = sourceSets.smokeTest.runtimeClasspath
systemProperties['build.dir'] = buildDir
}

jar {
baseName 'corda-rpc'
}

publish {
name = jar.baseName
}
2 changes: 1 addition & 1 deletion constants.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gradlePluginsVersion=0.12.3
gradlePluginsVersion=0.12.4
kotlinVersion=1.1.2
guavaVersion=21.0
bouncycastleVersion=1.56
Expand Down
8 changes: 8 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,11 @@ task testJar(type: Jar) {
artifacts {
testArtifacts testJar
}

jar {
baseName 'corda-core'
}

publish {
name = jar.baseName
}
8 changes: 8 additions & 0 deletions finance/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ configurations.testCompile {
// TODO: Remove this exclusion once junit-quickcheck 0.8 is released.
exclude group: 'javassist', module: 'javassist'
}

jar {
baseName 'corda-finance'
}

publish {
name = jar.baseName
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ class PublishTasks implements Plugin<Project> {
void configureMavenPublish(BintrayConfigExtension bintrayConfig) {
project.apply([plugin: 'maven-publish'])
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
artifactId publishName

Expand All @@ -76,6 +71,12 @@ class PublishTasks implements Plugin<Project> {
delegate.artifact it
}

if (!publishConfig.disableDefaultJar && !publishConfig.publishWar) {
from project.components.java
} else if (publishConfig.publishWar) {
from project.components.web
}

extendPomForMavenCentral(pom, bintrayConfig)
}
project.task("install", dependsOn: "publishToMavenLocal")
Expand Down
3 changes: 2 additions & 1 deletion gradle-plugins/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ include 'publish-utils'
include 'quasar-utils'
include 'cordformation'
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")
8 changes: 8 additions & 0 deletions node-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ dependencies {
testCompile "org.assertj:assertj-core:${assertj_version}"
testCompile project(':test-utils')
}

jar {
baseName 'corda-node-api'
}

publish {
name = jar.baseName
}
9 changes: 8 additions & 1 deletion node-schemas/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dependencies {
compile project(':core')
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile "junit:junit:$junit_version"
testCompile project(':test-utils')

// Requery: SQL based query & persistence for Kotlin
kapt "io.requery:requery-processor:$requery_version"
Expand All @@ -24,4 +23,12 @@ sourceSets {
srcDir "$buildDir/generated/source/kapt/main"
}
}
}

jar {
baseName 'corda-node-schemas'
}

publish {
name = jar.baseName
}
8 changes: 8 additions & 0 deletions node/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,11 @@ task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
}

jar {
baseName 'corda-node'
}

publish {
name = jar.baseName
}
8 changes: 8 additions & 0 deletions test-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ dependencies {
// OkHTTP: Simple HTTP library.
compile "com.squareup.okhttp3:okhttp:$okhttp_version"
}

jar {
baseName 'corda-test-utils'
}

publish {
name = jar.baseName
}
11 changes: 10 additions & 1 deletion verifier/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,13 @@ task integrationTest(type: Test) {
classpath = sourceSets.integrationTest.runtimeClasspath
}

build.dependsOn standaloneJar
artifacts {
publish standaloneJar {
classifier ""
}
}

publish {
name = 'corda-verifier'
disableDefaultJar = true
}
8 changes: 8 additions & 0 deletions webserver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
}

jar {
baseName 'corda-webserver-impl'
}

publish {
name = jar.baseName
}

0 comments on commit 08cbcac

Please sign in to comment.