-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
93 lines (79 loc) · 3.18 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
91
92
93
/*
* KKuTu-Web (https://github.com/KKuTuIO/KKuTu-Web)
* Copyright (C) 2021 KKuTuIO <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.6.6"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
kotlin("jvm") version "1.6.10"
kotlin("plugin.spring") version "1.6.10"
}
group = "me.kkutuio"
version = "v3"
java.sourceCompatibility = JavaVersion.VERSION_1_8
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
sourceSets {
main {
resources {
exclude("kkutu.json", "kkutu.default.json")
exclude("oauth.json", "oauth.default.json")
exclude(
"**/*.jsx",
"**/in_game_kkutu_help.js",
"**/in_game_kkutu.js",
"**/in_login.js",
"**/in_portal.js",
"**/oauth-buttons.js"
)
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
implementation("de.codecentric:spring-boot-admin-starter-client:2.6.3")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("com.neovisionaries:nv-websocket-client:2.10")
implementation("com.github.scribejava:scribejava-apis:7.1.1")
implementation("org.postgresql:postgresql:42.2.16")
implementation("com.googlecode.htmlcompressor:htmlcompressor:1.5.2")
implementation("io.sentry:sentry-spring-boot-starter:4.3.0")
implementation("io.sentry:sentry-logback:4.3.0")
implementation("io.springfox:springfox-swagger2:2.9.2")
implementation("io.springfox:springfox-swagger-ui:2.9.2")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
}