mirror of
https://github.com/corda/corda.git
synced 2024-12-22 06:17:55 +00:00
0b63157a4b
* ENT-3422 Add JUnit 5 dependencies to all projects * Remove explicit junit 4 imports where not needed * Minor PR fixes * Limit import scope
50 lines
1.4 KiB
Groovy
50 lines
1.4 KiB
Groovy
apply plugin: 'java-library'
|
|
apply from: '../../../deterministic.gradle'
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
apply plugin: 'idea'
|
|
|
|
description 'Test utilities for deterministic contract verification'
|
|
|
|
configurations {
|
|
deterministicArtifacts
|
|
runtimeArtifacts.extendsFrom api
|
|
}
|
|
|
|
dependencies {
|
|
deterministicArtifacts project(path: ':serialization-deterministic', configuration: 'deterministicArtifacts')
|
|
deterministicArtifacts project(path: ':core-deterministic', configuration: 'deterministicArtifacts')
|
|
|
|
runtimeArtifacts project(':serialization')
|
|
runtimeArtifacts project(':core')
|
|
|
|
// Compile against the deterministic artifacts to ensure that we use only the deterministic API subset.
|
|
compileOnly configurations.deterministicArtifacts
|
|
api "junit:junit:$junit_version"
|
|
api "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_version}"
|
|
}
|
|
|
|
jar {
|
|
baseName 'corda-deterministic-verifier'
|
|
}
|
|
|
|
artifacts {
|
|
deterministicArtifacts jar
|
|
runtimeArtifacts jar
|
|
publish jar
|
|
}
|
|
|
|
publish {
|
|
// Our published POM will contain dependencies on the non-deterministic Corda artifacts.
|
|
dependenciesFrom configurations.runtimeArtifacts
|
|
name jar.baseName
|
|
}
|
|
|
|
idea {
|
|
module {
|
|
if (project.hasProperty("deterministic_idea_sdk")) {
|
|
jdkName project.property("deterministic_idea_sdk") as String
|
|
}
|
|
}
|
|
}
|