Skip to content

Commit e0c9a70

Browse files
committed
fix maven central publishing
1 parent 78563b1 commit e0c9a70

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ createActiveTask(buildAndCollect)
254254

255255
java {
256256
withSourcesJar()
257+
withJavadocJar()
258+
}
259+
260+
tasks.javadoc {
261+
isFailOnError = false
257262
}
258263

259264
publishMods {
@@ -359,9 +364,12 @@ gradle.taskGraph.whenReady {
359364
val willSign = allTasks.any { it.name.startsWith("sign") }
360365
if (willSign) {
361366
signing {
362-
isRequired = signingKeyProvider.isPresent
367+
val signingKey = signingKeyProvider.orNull
368+
val signingPassword = signingPasswordProvider.orNull
369+
370+
isRequired = signingKey != null && signingPassword != null
363371
if (isRequired) {
364-
useInMemoryPgpKeys(signingKeyProvider.get(), signingPasswordProvider.get())
372+
useInMemoryPgpKeys(signingKey, signingPassword)
365373
} else {
366374
logger.error("Signing keys not found; skipping signing!")
367375
}

stonecutter.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ allprojects {
3535
forRepository { maven("https://thedarkcolour.github.io/KotlinForForge/") }
3636
filter { includeGroup("thedarkcolour") }
3737
}
38-
maven("https://oss.sonatype.org/content/repositories/snapshots/")
38+
mavenCentral()
3939
}
4040
}
4141

0 commit comments

Comments
 (0)