Skip to content

Commit 8fe408d

Browse files
committed
fix(common-catalog): bukkit-kt-ser 4.0.3
1 parent b0525a6 commit 8fe408d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

build-logic/catalog/src/main/kotlin/io/typst/spigradle/catalog/CommonVersions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enum class CommonVersions(val version: Version) {
2525
JOOQ(Version("3.19.29", "jooq")),
2626
HIKARI_CP(Version("7.0.2", "hikariCP")),
2727
FLYWAY(Version("11.19.0", "flyway")),
28-
BUKKIT_KOTLIN_SERIALIZATION(Version("4.0.2", "bukkitKotlinSerialization")),
28+
BUKKIT_KOTLIN_SERIALIZATION(Version("4.0.3", "typst-bukkitKotlinSerialization")),
2929
KOTLINX_SERIALIZATION(Version("1.9.0", "kotlinxSerialization")),
3030
KAML(Version("0.104.0", "kaml")),
3131
JUNIT(Version("6.0.1", "junit")),

build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,23 @@ allprojects {
3131
}
3232
}
3333

34+
val ossrhUsername = providers.gradleProperty("ossrh.username")
35+
val ossrhPassword = providers.gradleProperty("ossrh.password")
36+
3437
project.tasks.register("publishCentralPortal") {
3538
group = "publishing"
36-
val projectGroup = group
39+
val projectGroup = project.group
3740
doLast {
3841
val url = URL("https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/${projectGroup}")
3942
println(url)
4043
val con = url.openConnection() as java.net.HttpURLConnection
41-
val username = project.findProperty("ossrhUsername")?.toString()
42-
val password = project.findProperty("ossrhPassword")?.toString()
44+
val username = ossrhUsername.get()
45+
val password = ossrhPassword.get()
4346
val credential = Base64.getEncoder().encodeToString("$username:$password".toByteArray())
4447
val authValue = "Bearer $credential"
4548
con.requestMethod = "POST"
4649
con.setRequestProperty("Authorization", authValue)
4750
println(con.responseCode)
51+
assert(con.responseCode == 200)
4852
}
4953
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ kotlin.version=2.2
1313
catalog.spigot.version=1.0.0
1414
catalog.bungee.version=1.0.0
1515
catalog.nukkit.version=1.0.0
16-
catalog.common.version=1.0.0
16+
catalog.common.version=1.0.1
1717

1818
bom.paper.1_16.version=1.0.0
1919
bom.paper.1_20.version=1.0.0

0 commit comments

Comments
 (0)