forked from MewoLab/AquaDX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (59 loc) · 2.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
import java.time.Instant
import java.time.format.DateTimeFormatter
import java.time.ZoneId
plugins {
java
id("io.freefair.lombok") version "6.6.3"
id("org.springframework.boot") version "2.7.11"
}
apply(plugin = "io.spring.dependency-management")
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
// Spring boot
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web") {
exclude(group = "org.springframework.boot", module = "spring-boot-starter-tomcat")
}
implementation("org.springframework.boot:spring-boot-starter-jetty")
implementation("io.netty:netty-all")
implementation("org.apache.commons:commons-lang3")
implementation("org.apache.httpcomponents:httpclient")
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-mysql")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
testImplementation("org.springframework.security:spring-security-test")
// Database
runtimeOnly("com.mysql:mysql-connector-j:8.0.33")
runtimeOnly("org.mariadb.jdbc:mariadb-java-client:3.1.3")
runtimeOnly("org.xerial:sqlite-jdbc:3.41.2.1")
implementation("com.github.gwenn:sqlite-dialect:0.1.4")
// JSR305 for nullable
implementation("com.google.code.findbugs:jsr305:3.0.2")
// Others
implementation("commons-fileupload:commons-fileupload:1.5")
}
group = "icu.samnya"
version = "0.0.47"
description = "Aqua Server"
java.sourceCompatibility = JavaVersion.VERSION_17
val buildTime: String by extra(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss z").withZone(ZoneId.of("UTC")).format(Instant.now()))
tasks.processResources {
filesMatching("**/application.properties") {
expand(project.properties)
}
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
}