forked from yuchan2215/YobSubCord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (44 loc) · 1.78 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.6.2" //LICENSE OK
id("io.spring.dependency-management") version "1.0.11.RELEASE" //LICENSE OK
id("com.palantir.git-version") version "0.12.3" //LICENSE OK
kotlin("jvm") version "1.6.10" //LICENSE OK
kotlin("plugin.spring") version "1.6.10" //LICENSE OK
}
group = "xyz.miyayu.yobsub"
version = "4.1.1"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
val details = versionDetails()
val versions = details.lastTag
val implementationVersion = versions + ',' + (details.gitHash).substring(0,7)
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web") //LICENSE OK
implementation("com.fasterxml.jackson.module:jackson-module-kotlin") //LICENSE OK
implementation("org.jetbrains.kotlin:kotlin-reflect") //LICENSE OK
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") //LICENSE OK
implementation("io.github.cdimascio:dotenv-kotlin:6.2.2") //LICENSE OK
implementation("net.dv8tion:JDA:5.0.0-alpha.5") //LICENSE OK
testImplementation("org.springframework.boot:spring-boot-starter-test") //LICENSE OK
implementation("org.codehaus.groovy:groovy-all:3.0.9") //LICENSE OK
implementation("org.xerial:sqlite-jdbc:3.36.0.3") //LICENSE OK
implementation("org.json:json:20211205") //LICENSE OK
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
tasks.withType<Jar> {
manifest {
attributes["Implementation-Version"] = implementationVersion
}
}
tasks.withType<Test> {
useJUnitPlatform()
}