forked from sdkman/sdkman-broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (51 loc) · 1.57 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "io.ratpack:ratpack-gradle:1.5.0"
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
}
}
apply plugin: "io.ratpack.ratpack-java"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "idea"
apply plugin: "groovy"
repositories {
jcenter()
}
configurations {
funTestCompile.extendsFrom testCompile
funTestRuntime.extendsFrom testRuntime
}
dependencies {
runtime "org.slf4j:slf4j-simple:1.7.12"
compile ratpack.dependency("guice")
compile "org.mongodb:mongo-java-driver:3.2.2"
compile "org.slf4j:slf4j-simple:1.7.5"
testCompile "org.codehaus.groovy:groovy-all:2.4.9"
testCompile "org.spockframework:spock-core:1.1-groovy-2.4"
testRuntime "cglib:cglib-nodep:3.1"
testRuntime "org.objenesis:objenesis:2.1"
funTestCompile "info.cukes:cucumber-junit:1.1.8"
funTestCompile "info.cukes:cucumber-groovy:1.1.8"
funTestCompile "com.github.groovy-wslite:groovy-wslite:0.8.0"
}
mainClassName = "io.sdkman.broker.Main"
run {
systemProperties System.getProperties()
}
sourceSets {
funtest {
groovy.srcDir file("src/funtest/groovy")
resources.srcDir file("src/funtest/resources")
compileClasspath = sourceSets.main.output + sourceSets.test.output + configurations.funTestCompile
runtimeClasspath = output + compileClasspath + configurations.funTestRuntime
}
}
assemble.dependsOn shadowJar
task funtest(type: Test) {
testClassesDirs = sourceSets.funtest.output.classesDirs
classpath = sourceSets.funtest.runtimeClasspath
}
check.dependsOn funtest