mirror of
https://github.com/corda/corda.git
synced 2024-12-24 23:26:48 +00:00
9a5bba9c04
* Added a cross platform node runner to replace scripts. * Added runnodes shell and batch files back. * Node runner supports new webserver format. * Runnodes now runs correctly on OSX * Intermediate commit. Squash me. * Upgdated gradle plugins version number to 0.10.1 * Further inlined more functions. * Text display changes for noderunner.
62 lines
1.5 KiB
Groovy
62 lines
1.5 KiB
Groovy
buildscript {
|
|
// TODO: Unify with the one in the main project
|
|
ext.kotlin_version = '1.0.5-2'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'groovy'
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
|
|
description 'A small gradle plugin for adding some basic Quasar tasks and configurations to reduce build.gradle bloat.'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
configurations {
|
|
noderunner
|
|
compile.extendsFrom noderunner
|
|
}
|
|
|
|
sourceSets {
|
|
runnodes {
|
|
kotlin {
|
|
srcDir file('src/noderunner/kotlin')
|
|
compileClasspath += configurations.noderunner
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile gradleApi()
|
|
compile localGroovy()
|
|
|
|
noderunner "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
// TypeSafe Config: for simple and human friendly config files.
|
|
// TODO: Add a common versions file between Corda and gradle plugins to de-duplicate this version number
|
|
compile "com.typesafe:config:1.3.1"
|
|
}
|
|
|
|
task createNodeRunner(type: Jar, dependsOn: [classes]) {
|
|
manifest {
|
|
attributes('Main-Class': 'net.corda.plugins.NodeRunnerKt')
|
|
}
|
|
baseName = project.name + '-fatjar'
|
|
from { configurations.noderunner.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
from sourceSets.runnodes.output
|
|
}
|
|
|
|
jar {
|
|
from(createNodeRunner) {
|
|
rename { 'net/corda/plugins/runnodes.jar' }
|
|
}
|
|
} |