-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
67 lines (54 loc) · 1.68 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
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.5.0"
}
group = "de.l4zs"
version = "0.0.1"
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
mikbot("dev.schlaubi", "mikbot-api", "3.8.0-SNAPSHOT")
ksp("dev.schlaubi", "mikbot-plugin-processor", "2.2.1")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "18"
}
task<Copy>("buildAndInstall") {
group = "build"
dependsOn(assemblePlugin)
from(assemblePlugin)
include("*.zip")
into("plugins")
}
val generateDefaultResourceBundle = task<dev.schlaubi.mikbot.gradle.GenerateDefaultTranslationBundleTask>("generateDefaultResourceBundle") {
defaultLocale.set(Locale("en", "GB"))
}
assemblePlugin {
dependsOn(generateDefaultResourceBundle)
}
assembleBot {
}
installBot {
botVersion.set("3.8.0-SNAPSHOT")
}
pluginPublishing {
// The address your repository is hosted it
// if you use Git LFS and GitHub Pages use https://github.com/owner/repo/raw/branch
repositoryUrl.set("https://github.com/l4zs/RoleBotRewrite/raw/main")
// The directory the generated repository should be in
targetDirectory.set(rootProject.file("ci-repo").toPath())
// The URL of the project
projectUrl.set("https://github.com/l4zs/RoleBotRewrite")
}
}
mikbotPlugin {
description.set("RoleBot")
provider.set("l4zs")
license.set("GPLv3")
}