-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
64 lines (52 loc) · 1.83 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.20"
id("org.springframework.boot") version "3.3.3"
}
group = "com.github.mrbean355"
version = "2.8.0"
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
}
tasks.getByName<Jar>("jar") {
enabled = false
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.springframework.boot:spring-boot-starter-web:3.3.3")
implementation("org.springframework.boot:spring-boot-starter-data-jpa:3.3.3")
implementation("org.postgresql:postgresql:42.7.4")
implementation("com.faendir.jraw:JRAW:1.2.0")
implementation("org.telegram:telegrambots:6.9.7.1")
implementation("org.telegram:telegrambots-spring-boot-starter:6.9.7.1")
runtimeOnly("jakarta.xml.ws:jakarta.xml.ws-api:4.0.2") {
because("JAXB APIs are considered to be Java EE APIs and are completely removed from JDK 11")
}
runtimeOnly("javax.xml.ws:jaxws-api:2.3.1") {
because("JAXB APIs are considered to be Java EE APIs and are completely removed from JDK 11")
}
testImplementation(platform("org.junit:junit-bom:5.11.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("io.mockk:mockk:1.13.12")
}
tasks.test {
useJUnitPlatform()
}
val generateBuildConfig = tasks.register("generateBuildConfig") {
file("src/main/kotlin/com/github/mrbean355/zakbot/BuildConfig.kt").writeText(
"package com.github.mrbean355.zakbot\n" +
"\n" +
"const val AppVersion = \"$version\""
)
}
tasks.withType<KotlinCompile> {
dependsOn(generateBuildConfig)
}