-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (54 loc) · 1.84 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 dev.schlaubi.mikbot.gradle.GenerateDefaultTranslationBundleTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.util.Locale
plugins {
id("com.google.devtools.ksp") version "1.7.10-1.0.6"
kotlin("jvm") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
id("dev.schlaubi.mikbot.gradle-plugin") version "2.6.2"
}
group = "de.dqmme"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
@Suppress("DependencyOnStdlib")
compileOnly(kotlin("stdlib-jdk8"))
mikbot("dev.schlaubi", "mikbot-api", "3.14.0-SNAPSHOT")
ksp("dev.schlaubi", "mikbot-plugin-processor", "2.2.0")
implementation("com.github.twitch4j", "twitch4j", "1.10.0")
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-rx2", "1.6.2")
implementation("com.github.akarnokd", "rxjava2-interop", "0.13.7")
plugin("dev.schlaubi", "mikbot-game-animator", "2.8.0")
}
mikbotPlugin {
description.set("A bot that announces Twitch Streams!")
provider.set("DQMME")
license.set("MIT")
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "18"
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
}
val generateDefaultResourceBundle = task<GenerateDefaultTranslationBundleTask>("generateDefaultResourceBundle") {
defaultLocale.set(Locale("en", "GB"))
}
assemblePlugin {
dependsOn(generateDefaultResourceBundle)
}
assembleBot {
bundledPlugins.set(
listOf("[email protected]")
)
}
}
pluginPublishing {
repositoryUrl.set("https://twitchannounce.dqmme.gay")
targetDirectory.set(rootProject.file("ci-repo").toPath())
projectUrl.set("https://github.com/DQMME/twitchannouncebot")
}