-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
48 lines (39 loc) · 1.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
plugins {
id("java")
id("org.jetbrains.changelog") version "2.0.0"
}
version = if (System.getenv("GITHUB_REF") != null && System.getenv("GITHUB_REF").startsWith("refs/tags/v")) {
System.getenv("GITHUB_REF").substring("refs/tags/v".length)
} else {
"NONE"
}
changelog {
repositoryUrl.set("https://github.com/TeamFelnull/I-TTS")
introduction.set(
"""
このBOTの更新を追跡するための更新ログ。
変更をコミットする場合は`Unreleased`に更新内容を追記してください。
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/)に従って記述をお願い致します。
""".trimIndent()
)
combinePreReleases.set(false)
}
allprojects {
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
subprojects {
apply(plugin = "java")
apply(plugin = "java-library")
group = rootProject.group
version = rootProject.version
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}