-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
90 lines (75 loc) · 3.14 KB
/
build.gradle.kts
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import org.gradle.api.JavaVersion.VERSION_11
group = "com.github.mbto.funnyranks"
version = "1.0"
val springVersion: String by extra
plugins {
java
id("org.springframework.boot") version "2.1.12.RELEASE"
// id("io.spring.dependency-management") version "1.0.10.RELEASE"
}
subprojects {
apply(plugin = "java")
}
tasks {
compileJava { options.encoding = "UTF-8" }
compileTestJava { options.encoding = "UTF-8" }
bootJar {
exclude("application.properties")
exclude("application-dev.properties")
}
test {
if(!project.hasProperty("ManualTestEnabled")) {
exclude("**/ManualTest.class")
}
maxParallelForks = Runtime.getRuntime().availableProcessors()
}
}
allprojects {
extra["springVersion"] = "2.1.12.RELEASE"
extra["joinFacesVersion"] = "4.0.12"
repositories {
mavenCentral()
maven {
setUrl("https://repository.primefaces.org")
}
}
// Dependencies versions without io.spring.dependency-management plugin:
// http://search.maven.org/classic/remotecontent?filepath=org/springframework/boot/spring-boot-dependencies/2.1.12.RELEASE/spring-boot-dependencies-2.1.12.RELEASE.pom
dependencies {
val lombokVer = "1.18.6"
compileOnly("org.projectlombok:lombok:$lombokVer");
annotationProcessor("org.projectlombok:lombok:$lombokVer");
testCompile("org.projectlombok:lombok:$lombokVer");
testAnnotationProcessor("org.projectlombok:lombok:$lombokVer");
// compile("org.apache.commons:commons-math3:3.6.1")
// compile("org.apache.commons:commons-collections4:4.3")
// compile("commons-codec:commons-codec:1.11")
compile("org.apache.commons:commons-lang3:3.8.1")
compile("com.google.code.gson:gson:2.8.6")
// compile("commons-io:commons-io:2.6")
compile("com.github.jgonian:commons-ip-math:1.32")
// compile("org.springframework.boot:spring-boot-actuator:$springVersion")
compile("org.springframework.boot:spring-boot-starter-security:$springVersion")
compile("org.springframework.boot:spring-boot-starter-jooq:$springVersion")
compile("org.springframework.boot:spring-boot-starter-cache:$springVersion")
compile("mysql:mysql-connector-java:8.0.21")
// compile("com.github.ben-manes.caffeine:caffeine:2.6.2")
compile("org.springframework.boot:spring-boot-starter-web:$springVersion")
}
configure<JavaPluginConvention> {
sourceCompatibility = VERSION_11
}
}
val developmentOnly = configurations.create("developmentOnly")
configurations.runtimeClasspath.get().extendsFrom(developmentOnly)
dependencies {
// compile("io.hawt:hawtio-springboot:2.6.0") // compatible with spring boot 2.1.12.RELEASE
developmentOnly("org.springframework.boot:spring-boot-devtools:$springVersion")
subprojects.forEach {
compile(project(":${it.name}"))
}
/* test */
// testCompile("org.apache.commons:commons-collections4:4.3")
testCompile("org.springframework.boot:spring-boot-starter-test:$springVersion")
testCompile("org.springframework.boot:spring-boot-test-autoconfigure:$springVersion")
}