-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (73 loc) · 2.01 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
buildscript {
ext {
joobyVersion = "2.9.1"
}
}
plugins {
id "application"
id "io.jooby.run" version "${joobyVersion}"
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id "com.google.osdetector" version "1.6.2"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "com.adarshr.test-logger" version "2.1.1"
id "io.jooby.openAPI" version "${joobyVersion}"
}
group "tv.lid.cinema.api5"
version "1.0.0"
mainClassName = "tv.lid.cinema.api5.App"
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencyManagement {
imports {
mavenBom "io.jooby:jooby-bom:$joobyVersion"
}
}
dependencies {
implementation "io.jooby:jooby-netty"
implementation "io.jooby:jooby-jackson"
implementation "ch.qos.logback:logback-classic"
implementation "com.h2database:h2"
implementation "mysql:mysql-connector-java"
implementation "org.postgresql:postgresql:42.2.16"
implementation "org.jooq:jooq:3.13.4"
implementation "io.swagger.core.v3:swagger-annotations:2.1.7"
implementation "io.jooby:jooby-swagger-ui:2.9.5"
implementation "io.jooby:jooby-redoc:2.9.5"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.jupiter:junit-jupiter-engine"
testImplementation "io.jooby:jooby-test"
testImplementation "com.squareup.okhttp3:okhttp"
}
test {
useJUnitPlatform()
maxHeapSize = '1G'
outputs.upToDateWhen {false}
testlogger {
theme 'standard'
showExceptions true
showPassed true
showSkipped true
showFailed true
showStandardStreams false
logLevel 'lifecycle'
}
}
/** Java debug information: */
tasks.withType(JavaCompile) {
options.compilerArgs += [
'-parameters',
]
options.debug = true
options.encoding = 'UTF-8'
}
shadowJar {
mergeServiceFiles()
}
// выполнять задачу openAPI при запуске задачи run
run.dependsOn openAPI
// выполнять задачу openAPI при запуске задачи jar
jar.dependsOn openAPI