forked from khakers/modmail-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
123 lines (94 loc) · 2.62 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
plugins {
id 'java'
id 'application'
alias libs.plugins.gradle.release
alias libs.plugins.docker.java
alias libs.plugins.jte.gradle
alias libs.plugins.license
alias libs.plugins.gradle.git.properties
}
group 'com.github.khakers'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(libs.versions.java.get())
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
dependsOn("copyReport")
}
application {
mainClass = 'com.github.khakers.modmailviewer.Main'
}
repositories {
mavenCentral()
}
dependencies {
implementation libs.javalin
implementation libs.javalin.rendering
implementation libs.javalin.ssl.plugin
implementation libs.jte
implementation libs.flexmark
implementation libs.flexmark.ext.gfm.strikethrough
implementation libs.flexmark.ext.autolink
implementation libs.webjar.bootstrap
implementation libs.webjar.bootstrap.icons
implementation libs.webjar.highlightjs
implementation libs.webjar.unpoly
implementation libs.mongodb.driver
implementation libs.mongojack
implementation libs.log4j.api
implementation libs.log4j.core
implementation libs.log4j.slf4j.impl
implementation libs.jackson.databind
implementation libs.jackson.databind.jsr310
implementation libs.jackson.databind.jdk8
implementation libs.auth0.jwt
implementation libs.scribe.api
implementation libs.scribe.okhttp
implementation platform(libs.okhttp.bom)
implementation libs.okhttp
testImplementation libs.junit.jupiter.api
testRuntimeOnly libs.junit.jupiter.engine
testImplementation libs.junit.jupiter.params
}
test {
useJUnitPlatform()
}
compileJava {
options.incremental = true
}
jte {
generate()
}
gitProperties {
failOnNoGitDirectory = false
customProperty("buildTimestamp", Instant.now())
}
docker {
javaApplication {
baseImage = libs.versions.docker.base.get()+':'+libs.versions.docker.tag.get()
ports = [80]
}
}
licenseReport {
generateCsvReport = false
generateHtmlReport = true
generateJsonReport = false
generateTextReport = true
// ignoredPatterns = []
}
task('copyReport', type: Copy, dependsOn: 'licenseReport') {
from layout.buildDirectory.file("reports/licenses/licenseReport.html")
from layout.buildDirectory.file("reports/licenses/licenseReport.txt")
into layout.buildDirectory.dir("resources/main/static")
}
//processResources {
// dependsOn 'copyReport'
//// from layout.buildDirectory.file("reports/licenses/licenseReport.html")
//}
release {
git {
requireBranch.set('master')
}
}