@@ -7,7 +7,7 @@ plugins {
77 alias(libs.plugins.publishdata)
88 alias(libs.plugins.shadow)
99 alias(libs.plugins.paper.run)
10- alias(libs.plugins.bukkit .yml)
10+ alias(libs.plugins.paper .yml)
1111 alias(libs.plugins.hangar)
1212 alias(libs.plugins.modrinth)
1313 id(" olf.build-logic" )
@@ -27,15 +27,9 @@ if (!File("$rootDir/.git").exists()) {
2727group = " net.onelitefeather"
2828version = " 1.4.0"
2929
30- val minecraftVersion = " 1.20.6"
3130val supportedMinecraftVersions = listOf (
32- " 1.20" ,
33- " 1.20.1" ,
34- " 1.20.2" ,
35- " 1.20.3" ,
36- " 1.20.4" ,
37- " 1.20.5" ,
3831 " 1.20.6" ,
32+ " 1.21"
3933)
4034
4135repositories {
@@ -44,29 +38,23 @@ repositories {
4438}
4539
4640dependencies {
47- compileOnly(" io.papermc.paper:paper-api:$minecraftVersion -R0.1-SNAPSHOT" )
48- implementation(" net.kyori:adventure-text-minimessage:4.17.0" )
49-
41+ compileOnly(libs.paper)
42+ implementation(libs.adventure.minimessage)
5043
5144 // testing
5245 testImplementation(kotlin(" test" ))
53- testImplementation(" io.papermc. paper:paper-api: $minecraftVersion -R0.1-SNAPSHOT " )
54- testImplementation(" com.github.seeseemelk:MockBukkit-v1.19:3.1.0 " )
55- testImplementation(" io .mockk:mockk:1.13.11 " )
46+ testImplementation(libs. paper)
47+ testImplementation(libs.mock.bukkit )
48+ testImplementation(libs .mockk)
5649}
5750
5851kotlin {
5952 jvmToolchain {
6053 languageVersion.set(JavaLanguageVersion .of(21 ))
6154 }
62- sourceSets.all {
63- languageSettings {
64- languageVersion = " 2.0"
65- }
66- }
6755}
6856
69- bukkit {
57+ paper {
7058 main = " dev.themeinerlp.attollo.Attollo"
7159 apiVersion = " 1.20"
7260 authors = listOf (" TheMeinerLP" )
@@ -78,11 +66,6 @@ bukkit {
7866 default = Default .TRUE
7967 }
8068 }
81- commands {
82- register(" attollo" ) {
83- permission = " attollo.command.attollo"
84- }
85- }
8669}
8770
8871publishData {
@@ -116,13 +99,6 @@ tasks {
11699 pluginJars(rootProject.tasks.shadowJar.map { it.archiveFile }.get())
117100 }
118101 }
119- register<RunServer >(" runFolia" ) {
120- downloadsApiService.set(xyz.jpenilla.runtask.service.DownloadsAPIService .folia(project))
121- minecraftVersion(minecraftVersion)
122- group = " run paper"
123- runDirectory.set(file(" run-folia" ))
124- jvmArgs(" -DPaper.IgnoreJavaVersion=true" , " -Dcom.mojang.eula.agree=true" )
125- }
126102}
127103
128104val branch = rootProject.branchName()
@@ -165,7 +141,6 @@ if (!isRelease || isMainBranch) { // Only publish releases from the main branch
165141 uploadFile.set(tasks.shadowJar.flatMap { it.archiveFile })
166142 gameVersions.addAll(supportedMinecraftVersions)
167143 loaders.add(" paper" )
168- loaders.add(" bukkit" )
169144 }
170145}
171146
0 commit comments