Skip to content

Commit c3dae12

Browse files
authored
Merge pull request #40 from AzisabaNetwork/migrate/to-paper-api
Paper APIへ移行
2 parents 6ad00be + cc567c8 commit c3dae12

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ val defaultEncoding: String = "UTF-8"
1111
java.sourceCompatibility = JavaVersion.VERSION_17
1212

1313
repositories {
14-
mavenLocal()
1514
mavenCentral()
15+
1616
maven {
17-
name = "SpigotMC maven"
18-
url = uri("https://hub.spigotmc.org/nexus/content/groups/public/")
17+
name = "PaperMC Maven"
18+
url = uri("https://repo.papermc.io/repository/maven-public/")
1919
}
2020

2121
maven {
@@ -32,8 +32,8 @@ dependencies {
3232
implementation(libs.com.mysql.mysql.connector.j)
3333
implementation(libs.com.zaxxer.hikaricp)
3434

35-
// Plugin dependencies
36-
compileOnly(libs.org.spigotmc.spigot.api)
35+
// Minecraft plugin dependencies
36+
compileOnly(libs.paper.api)
3737
implementation(libs.me.rayzr522.jsonmessage)
3838

3939
// For testing

gradle/libs.versions.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[versions]
22
# Plugins
33
lombok = "8.11"
4+
paperweight = "2.0.0-beta.11"
45

56
# Project tools
67
junit-jupiter = "5.11.3"
@@ -10,17 +11,18 @@ jetbrains-annotations = "26.0.1"
1011
hikaricp = "4.0.3"
1112
com-mysql-mysql-connector-j = "9.1.0"
1213

13-
# Plugin dependencies
14-
spigot-api = "1.16.5-R0.1-SNAPSHOT"
14+
# Minecraft plugin dependencies
15+
paper-api = "1.16.5-R0.1-SNAPSHOT"
1516
jsonmessage = "1.3.1"
1617

1718
[plugins]
1819
lombok = { id = "io.freefair.lombok", version.ref = "lombok" }
20+
paperweight = { id = "io.papermc.paperweight.userdev", version.ref = "paperweight" }
1921

2022
[libraries]
2123
com-mysql-mysql-connector-j = { module = "com.mysql:mysql-connector-j", version.ref = "com-mysql-mysql-connector-j" }
2224
com-zaxxer-hikaricp = { module = "com.zaxxer:HikariCP", version.ref = "hikaricp" }
2325
me-rayzr522-jsonmessage = { module = "me.rayzr522:jsonmessage", version.ref = "jsonmessage" }
2426
org-jetbrains-annotations = { module = "org.jetbrains:annotations", version.ref = "jetbrains-annotations" }
2527
org-junit-jupiter-junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
26-
org-spigotmc-spigot-api = { module = "org.spigotmc:spigot-api", version.ref = "spigot-api" }
28+
paper-api = { module = "com.destroystokyo.paper:paper-api", version.ref = "paper-api"}

0 commit comments

Comments
 (0)