mirror of
https://github.com/corda/corda.git
synced 2024-12-24 15:16:45 +00:00
d611a41ec8
A template directory and file, `Constants`, has been added to allow gradle to replace the string `"@corda_release_version@"` with the current corda version provided by gradle. This output will be copied into the src directory and used for all builds. The generated `Constants` file has also been checked in to remove reliance for developers to first run a gradle build to get their environment fully working. This file does not need to be updated in the future since gradle will handle building the modules.
35 lines
940 B
Groovy
35 lines
940 B
Groovy
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
|
|
dependencies {
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: kotlin_version
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: kotlin_version
|
|
|
|
compile group: "com.typesafe", name: "config", version: typesafe_config_version
|
|
|
|
// Log4J: logging framework
|
|
compile "org.apache.logging.log4j:log4j-core:$log4j_version"
|
|
|
|
compile "com.jcabi:jcabi-manifests:$jcabi_manifests_version"
|
|
|
|
testCompile project(":test-utils")
|
|
}
|
|
|
|
|
|
task generateSource(type: Copy) {
|
|
from 'src/main/template'
|
|
filter(ReplaceTokens, tokens: [corda_release_version: corda_release_version])
|
|
into 'src/main'
|
|
}
|
|
compileKotlin.dependsOn generateSource
|
|
|
|
jar {
|
|
baseName 'corda-common-logging'
|
|
}
|
|
|
|
publish {
|
|
name jar.baseName
|
|
} |