-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
71 lines (62 loc) · 1.83 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
plugins {
`kotlin-dsl`
`maven-publish`
groovy
kotlin("plugin.serialization") version "1.4.31"
id("com.gradle.plugin-publish") version "0.15.0"
id("com.github.ben-manes.versions") version "0.39.0"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
kotlin {
explicitApi()
}
tasks.test.configure {
useJUnitPlatform()
}
tasks.compileKotlin.configure {
kotlinOptions {
allWarningsAsErrors = true
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("de.undercouch:gradle-download-task:4.1.2")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0")
implementation("com.charleskorn.kaml:kaml:0.31.0")
testImplementation("junit:junit:4.13")
testImplementation(platform("org.spockframework:spock-bom:2.0-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 {
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"
}
}
}
pluginBundle {
website = "https://github.com/EndlessCodeGroup/BukkitGradle"
vcsUrl = website
tags = listOf("minecraft", "bukkit", "plugin", "spigot", "paper")
}