File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
build-logic/catalog/src/main/kotlin/io/typst/spigradle/catalog Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff 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")),
Original file line number Diff line number Diff 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+
3437project.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}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ kotlin.version=2.2
1313catalog.spigot.version=1.0.0
1414catalog.bungee.version=1.0.0
1515catalog.nukkit.version=1.0.0
16- catalog.common.version=1.0.0
16+ catalog.common.version=1.0.1
1717
1818bom.paper.1_16.version=1.0.0
1919bom.paper.1_20.version=1.0.0
You can’t perform that action at this time.
0 commit comments