2015-12-18 16:20:47 +03:00
|
|
|
description = 'dataforge-server'
|
|
|
|
|
2017-04-11 22:48:41 +03:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
2017-05-21 18:50:47 +03:00
|
|
|
classpath 'io.ratpack:ratpack-gradle:1.4.6'
|
2017-12-21 16:12:20 +03:00
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:2.+'
|
2017-04-11 22:48:41 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "io.ratpack.ratpack-java"
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
|
|
|
|
|
|
|
|
mainClassName = "inr.numass.server.ServerRunner"
|
|
|
|
|
2015-12-18 16:20:47 +03:00
|
|
|
dependencies {
|
2017-04-15 22:15:53 +03:00
|
|
|
compile project(':numass-core')
|
2017-05-21 18:50:47 +03:00
|
|
|
compile "hep.dataforge:storage-server" // project(':dataforge-storage:storage-servlet')
|
2015-12-18 16:20:47 +03:00
|
|
|
compile 'commons-daemon:commons-daemon:1.+'
|
2017-04-05 22:07:43 +03:00
|
|
|
}
|
|
|
|
|
2017-04-07 20:58:29 +03:00
|
|
|
//processResources {
|
2017-04-05 22:07:43 +03:00
|
|
|
// from configurations.compile.files {"hep.dataforge:storage-servlet"}.find {'/src/main/resources/ratpack'}
|
2017-04-07 20:58:29 +03:00
|
|
|
//}
|
|
|
|
|
|
|
|
|
2017-04-11 17:01:34 +03:00
|
|
|
task runServer(dependsOn: classes, type: JavaExec){
|
|
|
|
group "numass"
|
|
|
|
description "Run numass server in current directory"
|
|
|
|
main 'inr.numass.server.ServerRunner'
|
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
|
|
workingDir "D:\\Temp\\test\\"
|
|
|
|
standardInput = System.in
|
|
|
|
standardOutput = System.out
|
2017-05-02 16:57:03 +03:00
|
|
|
}
|