This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
76 lines (62 loc) · 1.99 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
73
74
75
76
import dev.schlaubi.mikbot.gradle.GenerateDefaultTranslationBundleTask
import java.util.Locale
plugins {
kotlin("jvm") version "1.7.20"
kotlin("plugin.serialization") version "1.7.20"
id("com.google.devtools.ksp") version "1.7.20-1.0.7"
id("dev.schlaubi.mikbot.gradle-plugin") version "2.6.3"
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
}
ktlint {
disabledRules.set(listOf("no-wildcard-imports"))
}
group = "net.stckoverflw"
version = "1.0.5"
repositories {
mavenCentral()
maven("https://schlaubi.jfrog.io/artifactory/mikbot/")
maven("https://schlaubi.jfrog.io/artifactory/envconf/")
maven("https://maven.kotlindiscord.com/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
compileOnly("dev.schlaubi:mikbot-api:2.3.1-SNAPSHOT")
ksp("dev.schlaubi:mikbot-plugin-processor:2.3.0")
}
mikbotPlugin {
provider.set("StckOverflw")
license.set("AGPL-3.0 License")
description.set("Sends a message to your bot's users to use slash commands when they try to use message")
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks {
compileKotlin {
kotlinOptions {
jvmTarget = "17"
}
}
task<Copy>("buildAndInstall") {
dependsOn(assemblePlugin)
from(assemblePlugin)
include("*.zip")
into("plugins")
}
val generateDefaultResourceBundle = task<GenerateDefaultTranslationBundleTask>("generateDefaultResourceBundle") {
defaultLocale.set(Locale("en", "GB"))
}
assemblePlugin {
dependsOn(generateDefaultResourceBundle)
}
installBot {
botVersion.set("2.3.1-SNAPSHOT")
}
pluginPublishing {
repositoryUrl.set("https://antimessagecmds.mikbot.stckoverflw.net")
targetDirectory.set(rootProject.file("ci-repo").toPath())
projectUrl.set("https://github.com/StckOverflw/AntiMessageCmds")
}
}