This repository has been archived by the owner on Jul 21, 2024. It is now read-only.
generated from SatellyteMC/paper-kotlin-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (54 loc) · 1.55 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
kotlin("jvm") version "1.7.22"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("maven-publish")
id("io.papermc.paperweight.userdev") version "1.4.1"
id("xyz.jpenilla.run-paper") version "2.0.1"
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
}
group = "net.satellyte"
version = "1.0.0"
description = "My Kotlin Paper Plugin"
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://maven.lenni0451.net/releases")
maven("https://repo.viaversion.com/")
}
dependencies {
implementation(kotlin("stdlib"))
paperDevBundle("1.19.2-R0.1-SNAPSHOT")
implementation("net.axay:kspigot:1.19.0")
compileOnly("com.viaversion:viaversion:4.6.0-1.19.4-pre3-SNAPSHOT")
implementation("net.raphimc:ViaAprilFools:2.0.4")
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
tasks {
assemble {
dependsOn(reobfJar)
}
compileJava {
options.encoding = "UTF-8"
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
shadowJar { }
}
bukkit {
name = "ViaAprilFoolsPaper"
description = description
main = "dev.igalaxy.viaaprilfoolspaper.ViaAprilFoolsPaper"
version = version
apiVersion = "1.19"
depend = listOf("ViaVersion", "ViaBackwards")
}
publishing {
publications {
create<MavenPublication>("maven") {
artifactId = "viaaprilfoolspaper"
from(components["java"])
}
}
}