2020-02-18 09:12:19 +00:00
|
|
|
plugins {
|
|
|
|
id 'java-library'
|
|
|
|
id 'net.corda.plugins.publish-utils'
|
|
|
|
id 'com.jfrog.artifactory'
|
|
|
|
id 'idea'
|
|
|
|
}
|
|
|
|
apply from: "${rootProject.projectDir}/deterministic.gradle"
|
2018-09-07 14:07:06 +00:00
|
|
|
|
|
|
|
description 'Test utilities for deterministic contract verification'
|
|
|
|
|
|
|
|
configurations {
|
2021-11-10 16:38:40 +00:00
|
|
|
deterministicArtifacts {
|
|
|
|
canBeResolved = false
|
|
|
|
}
|
|
|
|
|
|
|
|
// Compile against the deterministic artifacts to ensure that we use only the deterministic API subset.
|
|
|
|
compileOnly.extendsFrom deterministicArtifacts
|
2018-09-07 14:07:06 +00:00
|
|
|
runtimeArtifacts.extendsFrom api
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
deterministicArtifacts project(path: ':serialization-deterministic', configuration: 'deterministicArtifacts')
|
|
|
|
deterministicArtifacts project(path: ':core-deterministic', configuration: 'deterministicArtifacts')
|
|
|
|
|
|
|
|
runtimeArtifacts project(':serialization')
|
|
|
|
runtimeArtifacts project(':core')
|
|
|
|
|
|
|
|
api "junit:junit:$junit_version"
|
2019-06-21 13:01:59 +00:00
|
|
|
runtimeOnly "org.junit.vintage:junit-vintage-engine:$junit_vintage_version"
|
2018-09-07 14:07:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
2019-06-21 13:01:59 +00:00
|
|
|
archiveBaseName = 'corda-deterministic-verifier'
|
2018-09-07 14:07:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
deterministicArtifacts jar
|
|
|
|
runtimeArtifacts jar
|
|
|
|
publish jar
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
// Our published POM will contain dependencies on the non-deterministic Corda artifacts.
|
2019-06-21 13:01:59 +00:00
|
|
|
dependenciesFrom(configurations.runtimeArtifacts) {
|
|
|
|
defaultScope = 'compile'
|
|
|
|
}
|
|
|
|
name jar.archiveBaseName.get()
|
2018-09-07 14:07:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
if (project.hasProperty("deterministic_idea_sdk")) {
|
|
|
|
jdkName project.property("deterministic_idea_sdk") as String
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|