-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
66 lines (57 loc) · 1.89 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
plugins {
`kotlin-dsl`
`maven-publish`
groovy
kotlin("plugin.serialization") version embeddedKotlinVersion
id("com.gradle.plugin-publish") version "1.3.1"
id("com.github.ben-manes.versions") version "0.52.0"
}
kotlin {
explicitApi()
jvmToolchain(17)
compilerOptions {
allWarningsAsErrors = true
}
}
tasks.test {
useJUnitPlatform()
jvmArgs("--add-opens=java.base/java.nio.charset=ALL-UNNAMED")
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation("xyz.jpenilla.run-paper:xyz.jpenilla.run-paper.gradle.plugin:2.3.1")
implementation("xyz.jpenilla.resource-factory:xyz.jpenilla.resource-factory.gradle.plugin:1.2.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1")
implementation("com.charleskorn.kaml:kaml:0.74.0")
testImplementation("junit:junit:4.13.1")
testImplementation(platform("org.spockframework:spock-bom:2.3-groovy-3.0"))
testImplementation("org.spockframework:spock-core")
testImplementation("org.spockframework:spock-junit4")
}
val runningOnCi = System.getenv("CI") == "true"
publishing {
repositories {
if (runningOnCi) {
maven("https://maven.pkg.github.com/EndlessCodeGroup/BukkitGradle") {
name = "githubPackages"
credentials(PasswordCredentials::class)
}
}
}
}
gradlePlugin {
website = "https://github.com/EndlessCodeGroup/BukkitGradle"
vcsUrl = website
plugins {
create("bukkitGradle") {
id = "ru.endlesscode.bukkitgradle"
displayName = "BukkitGradle Plugin"
description = "Gradle plugin providing integration for easier Bukkit plugins development."
implementationClass = "ru.endlesscode.bukkitgradle.BukkitGradlePlugin"
tags = listOf("minecraft", "bukkit", "spigot", "paper")
}
}
}