Skip to content

Commit bd7458d

Browse files
authored
Merge branch 'version/1.21.8' into feat/serializers
2 parents e6f16db + 9595322 commit bd7458d

File tree

12 files changed

+605
-90
lines changed

12 files changed

+605
-90
lines changed

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ mcVersion=1.21.8
99
group=dev.slne.surf
1010
version=1.21.8-2.38.0
1111
relocationPrefix=dev.slne.surf.surfapi.libs
12-
snapshot=true
12+
snapshot=false

gradle/libs.versions.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
paper-api = "1.21.8-R0.1-SNAPSHOT"
44

55
# Kolin
6-
kotlinVersion = "2.2.0"
6+
kotlinVersion = "2.2.20"
77
kotlinxCoroutines = "1.10.2"
88
kotlinx-serialization = "1.9.0"
99

1010
# Packet Events
11-
packetevents = "2.9.1"
12-
packetevents-plugin = "2.9.1"
11+
packetevents = "2.9.5"
12+
packetevents-plugin = "2.9.5"
1313

1414
# Command API
1515
commandapi = "10.1.2"
@@ -18,9 +18,9 @@ commandapi = "10.1.2"
1818
luckperms = "v5.5.0-bukkit"
1919

2020
# Scoreboard Library
21-
scoreboard-library = "2.4.1"
22-
scoreboard-library-implementation = "2.4.1"
23-
scoreboard-library-modern = "2.4.1"
21+
scoreboard-library = "2.4.2"
22+
scoreboard-library-implementation = "2.4.2"
23+
scoreboard-library-modern = "2.4.2"
2424

2525
# Adventure
2626
adventure-api = "4.24.0"
@@ -58,8 +58,7 @@ auto-service = "1.1.1"
5858
auto-service-ksp = "1.2.0"
5959
ktor = "3.1.1"
6060
glm = "0.9.9.1-12"
61-
ksp-version = "2.2.0-2.0.2"
62-
datafixerupper = "8.0.16"
61+
ksp-version = "2.2.20-2.0.3"
6362

6463
# Plugin versions
6564
maven-repo-auth = "3.0.4"

surf-api-bukkit/surf-api-bukkit-api/api/surf-api-bukkit-api.api

Lines changed: 190 additions & 23 deletions
Large diffs are not rendered by default.

surf-api-core/surf-api-core-api/api/surf-api-core-api.api

Lines changed: 190 additions & 23 deletions
Large diffs are not rendered by default.

surf-api-gradle-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
group = groupId
2121
version = buildString {
2222
append(mcVersion)
23-
append("-1.4.3")
23+
append("-1.4.5")
2424
if (snapshot) append("-SNAPSHOT")
2525
}
2626

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package dev.slne.surf.surfapi.gradle.platform
2+
3+
import dev.slne.surf.surfapi.gradle.platform.common.CommonSurfPlugin
4+
5+
fun CommonSurfPlugin<*>.relocateCloudNetty() {
6+
addRelocationsForDependency(
7+
"surf-cloud-api-common",
8+
"io.netty" to "dev.slne.surf.cloud.netty"
9+
)
10+
}

surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/surfapi/gradle/platform/common/CommonSurfPlugin.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ abstract class CommonSurfPlugin<E : CommonSurfExtension>(
4040
private val relocations = mutableMapOf<String, String>()
4141
private val dependencyDependentRelocations = mutableMapOf<String, MutableMap<String, String>>()
4242

43-
init {
44-
addRelocationsForDependency(
45-
"surf-cloud-api-common",
46-
"io.netty" to "dev.slne.surf.cloud.netty"
47-
)
48-
}
49-
5043
protected abstract fun createExtension(objects: ObjectFactory, project: Project): E
5144

5245
override fun apply(target: Project) = with(target) {
@@ -76,7 +69,7 @@ abstract class CommonSurfPlugin<E : CommonSurfExtension>(
7669
relocations[this] = to
7770
}
7871

79-
protected fun addRelocationsForDependency(
72+
fun addRelocationsForDependency(
8073
dependency: String,
8174
vararg relocations: Pair<String, String>,
8275
) {

surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/surfapi/gradle/platform/paper/AbstractPaperSurfPlugin.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ package dev.slne.surf.surfapi.gradle.platform.paper
33
import dev.slne.surf.surfapi.gradle.generated.Constants
44
import dev.slne.surf.surfapi.gradle.platform.SurfApiPlatform
55
import dev.slne.surf.surfapi.gradle.platform.core.AbstractCoreSurfPlugin
6+
import dev.slne.surf.surfapi.gradle.platform.relocateCloudNetty
67
import org.gradle.api.Project
78
import org.gradle.kotlin.dsl.dependencies
89
import org.jetbrains.kotlin.gradle.utils.COMPILE_ONLY
910

1011
internal abstract class AbstractPaperSurfPlugin<E : AbstractPaperSurfExtension>(platformName: String) :
1112
AbstractCoreSurfPlugin<E>(platformName, SurfApiPlatform.PAPER) {
1213

14+
init {
15+
relocateCloudNetty()
16+
}
17+
1318
override fun Project.configure0() {
1419
dependencies {
1520
add(COMPILE_ONLY, Constants.PAPER_API)

surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/surfapi/gradle/platform/paper/plugin/PaperPluginSurfExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ open class PaperPluginSurfExtension @Inject constructor(objects: ObjectFactory)
2121
.convention(null)
2222
internal val runServer = objects.property<Action<RunServer>>().convention(null)
2323
internal val foliaSupported = objects.property<Boolean>().convention(false)
24-
internal val generateLibraryLoader = objects.property<Boolean>().convention(true)
24+
internal val generateLibraryLoader = objects.property<Boolean>().convention(false)
2525

2626
fun mainClass(mainClass: String) {
2727
this.mainClass.set(mainClass)

0 commit comments

Comments
 (0)