forked from sdkman/sdkman-broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (57 loc) · 1.83 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
65
66
67
68
69
70
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "io.ratpack:ratpack-gradle:1.8.0"
classpath "com.github.jengelman.gradle.plugins:shadow:5.2.0"
classpath "com.netflix.nebula:nebula-release-plugin:15.3.1"
}
}
apply plugin: "io.ratpack.ratpack-java"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "idea"
apply plugin: "groovy"
apply plugin: "nebula.release"
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
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"
compile "com.github.sdkman:sdkman-persistent-model:1.1.1"
testCompile "org.codehaus.groovy:groovy-all:2.4.19"
testCompile "org.spockframework:spock-core:1.1-groovy-2.4"
testRuntime "cglib:cglib-nodep:3.1"
testRuntime "org.objenesis:objenesis:2.1"
funTestCompile ratpack.dependency("test")
funTestCompile "io.cucumber:cucumber-junit:6.1.1"
funTestCompile "io.cucumber:cucumber-groovy:6.1.1"
funTestCompile "com.github.groovy-wslite:groovy-wslite:1.1.2"
}
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