Corrected isolated.jar excludes for all projects and corrected some test dependencies.

This commit is contained in:
Clinton Alexander 2017-09-22 16:45:48 +01:00 committed by Mike Hearn
parent 095d94f2c7
commit 05e94e7425
9 changed files with 13 additions and 37 deletions

View File

@ -146,11 +146,17 @@ allprojects {
maven { url 'https://jitpack.io' } maven { url 'https://jitpack.io' }
} }
configurations.compile { configurations {
compile {
// We want to use SLF4J's version of these bindings: jcl-over-slf4j // We want to use SLF4J's version of these bindings: jcl-over-slf4j
// Remove any transitive dependency on Apache's version. // Remove any transitive dependency on Apache's version.
exclude group: 'commons-logging', module: 'commons-logging' exclude group: 'commons-logging', module: 'commons-logging'
} }
runtime {
// We never want isolated.jar on classPath, since we want to test jar being dynamically loaded as an attachment
exclude module: 'isolated'
}
}
} }
// Check that we are running on a Java 8 JDK. The source/targetCompatibility values above aren't sufficient to // Check that we are running on a Java 8 JDK. The source/targetCompatibility values above aren't sufficient to

View File

@ -7,9 +7,6 @@ description 'Corda client JavaFX modules'
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
configurations { configurations {
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
runtime.exclude module: 'isolated'
integrationTestCompile.extendsFrom testCompile integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime integrationTestRuntime.extendsFrom testRuntime
} }

View File

@ -5,12 +5,6 @@ apply plugin: 'com.jfrog.artifactory'
description 'Corda client mock modules' description 'Corda client mock modules'
//noinspection GroovyAssignabilityCheck
configurations {
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
runtime.exclude module: 'isolated'
}
// To find potential version conflicts, run "gradle htmlDependencyReport" and then look in // To find potential version conflicts, run "gradle htmlDependencyReport" and then look in
// build/reports/project/dependencies/index.html for green highlighted parts of the tree. // build/reports/project/dependencies/index.html for green highlighted parts of the tree.

View File

@ -7,9 +7,6 @@ description 'Corda client RPC modules'
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
configurations { configurations {
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
runtime.exclude module: 'isolated'
integrationTestCompile.extendsFrom testCompile integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime integrationTestRuntime.extendsFrom testRuntime

View File

@ -2,5 +2,5 @@ apply plugin: 'kotlin'
apply plugin: CanonicalizerPlugin apply plugin: CanonicalizerPlugin
dependencies { dependencies {
compile project(':core') compileOnly project(':core')
} }

View File

@ -5,12 +5,6 @@ apply plugin: 'com.jfrog.artifactory'
description 'Corda node Artemis API' description 'Corda node Artemis API'
buildscript {
repositories {
mavenCentral()
}
}
dependencies { dependencies {
compile project(":core") compile project(":core")
@ -36,8 +30,8 @@ dependencies {
// Unit testing helpers. // Unit testing helpers.
testCompile "junit:junit:$junit_version" testCompile "junit:junit:$junit_version"
testCompile "org.assertj:assertj-core:${assertj_version}" testCompile "org.assertj:assertj-core:$assertj_version"
testCompile project(':test-utils') testCompile project(':node-driver')
} }
jar { jar {

View File

@ -11,9 +11,6 @@ description 'Corda node modules'
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
configurations { configurations {
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
runtime.exclude module: 'isolated'
compile { compile {
// We don't need these because we already include netty-all. // We don't need these because we already include netty-all.
exclude group: 'io.netty', module: 'netty-transport' exclude group: 'io.netty', module: 'netty-transport'

View File

@ -6,9 +6,6 @@ apply plugin: 'com.jfrog.artifactory'
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
configurations { configurations {
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
runtime.exclude module: 'isolated'
integrationTestCompile.extendsFrom testCompile integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime integrationTestRuntime.extendsFrom testRuntime
} }

View File

@ -6,12 +6,6 @@ apply plugin: 'com.jfrog.artifactory'
description 'Testing utilities for Corda' description 'Testing utilities for Corda'
//noinspection GroovyAssignabilityCheck
configurations {
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
runtime.exclude module: 'isolated'
}
dependencies { dependencies {
compile project(':test-common') compile project(':test-common')
compile project(':core') compile project(':core')