-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
93 lines (75 loc) · 2.12 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
buildscript {
ext {
kotlinVersion = "1.3.50"
joobyVersion = "2.11.0"
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.google.gradle:osdetector-gradle-plugin:1.6.2"
classpath "io.spring.gradle:dependency-management-plugin:1.0.11.RELEASE"
classpath "io.jooby:jooby-gradle-plugin:$joobyVersion"
classpath "com.github.jengelman.gradle.plugins:shadow:5.1.0"
}
}
apply plugin: "io.spring.dependency-management"
apply plugin: "com.google.osdetector"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "application"
apply plugin: "jooby"
apply plugin: "jacoco"
/** run gradlew install to export pom-default.xml under build/poms/ */
apply plugin: "maven"
group "der3318"
version "1.0.2"
mainClassName = "der3318.App"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
/** utf-8 encoding */
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "io.jooby:jooby-bom:$joobyVersion"
}
}
dependencies {
/** template engine */
compile "io.jooby:jooby-pebble:2.11.0"
/** database interface */
compile "io.jooby:jooby-hikari:2.11.0"
compile "io.jooby:jooby-jdbi:2.11.0"
/** database dependency */
compile "com.h2database:h2:1.4.200"
compile "org.xerial:sqlite-jdbc:3.36.0.3"
/** json utility */
compile "io.jooby:jooby-jackson:2.11.0"
compile "io.jooby:jooby-utow"
compile "ch.qos.logback:logback-classic"
testCompile "org.junit.jupiter:junit-jupiter-api"
testCompile "org.junit.jupiter:junit-jupiter-engine"
testCompile "io.jooby:jooby-test"
testCompile "com.squareup.okhttp3:okhttp"
}
test {
useJUnitPlatform()
}
/** Java debug information: */
tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters"
options.debug = true
}
shadowJar {
mergeServiceFiles()
}