-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
61 lines (49 loc) · 1.72 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
plugins {
id "groovy"
id "org.jetbrains.kotlin.jvm" version "1.7.21"
id "io.ratpack.ratpack-java" version "1.9.0"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "nebula.release" version "15.3.1"
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
configurations {
funTestCompile.extendsFrom testImplementation
funTestRuntime.extendsFrom testRuntimeOnly
}
dependencies {
runtimeOnly "org.slf4j:slf4j-simple:1.7.12"
implementation "io.arrow-kt:arrow-core:1.0.1"
implementation ratpack.dependency("guice")
implementation "org.mongodb:mongo-java-driver:3.2.2"
implementation "org.slf4j:slf4j-simple:1.7.5"
implementation "com.github.sdkman:sdkman-persistent-model:1.1.1"
testImplementation "org.codehaus.groovy:groovy-all:2.4.19"
testImplementation "org.spockframework:spock-core:1.1-groovy-2.4"
testRuntimeOnly "cglib:cglib-nodep:3.1"
testRuntimeOnly "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