-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
65 lines (54 loc) · 1.63 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
import org.codehaus.groovy.runtime.GStringImpl
plugins {
id 'idea'
id 'distribution'
}
apply plugin: 'application'
apply plugin: 'scala'
repositories {
mavenCentral()
}
ext {
scalaStyleConfig = "$rootDir/scalastyle_config.xml"
}
subprojects { subproject ->
group 'de.thm.ii'
version '1.0-SNAPSHOT'
}
task dist(dependsOn: ["fbs-runner.checker:installDist", "distApi", "distWeb"]) {}
task distApi(dependsOn: ['fbs-core.api:installDist']) {}
task distWeb(dependsOn: ["fbs-core.web:installDist", "fbs-core.web:copyWebToWS"])
distApi.shouldRunAfter distWeb
distributions {
main {
distributionBaseName = project.name
contents {
project.subprojects.each { sub ->
switch (sub.name) {
case 'fbs-core.web':
into('modules/fbs-core/api/http') {
from "${sub.buildDir}/install/${sub.name}"
include '*/**'
}
break
case 'fbs-core.api':
into('') {
from "${sub.buildDir}/install/"
include '*/**'
}
into(sub.name) {
from "${sub.projectDir}"
include 'Dockerfile'
}
break
}
}
}
}
}
task jacocoRootReport() {
dependsOn = ['fbs-core.api:jacocoReport', 'fbs-runner.checker:jacocoReport']
}
dependencies {
compileOnly 'org.scala-lang:scala-library:2.13.1'
}