Skip to content

Commit 6501f53

Browse files
fix: Github Actions
1 parent fd0392c commit 6501f53

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

build.gradle.kts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import net.thebugmc.gradle.sonatypepublisher.PublishingType
2+
13
plugins {
24
id("studio.o7.remora") version "0.0.9"
5+
id("net.thebugmc.gradle.sonatype-central-portal-publisher") version "1.2.4"
36
}
47

58
remora {
@@ -8,8 +11,6 @@ remora {
811

912
description = "Agones Java gRPC SDK implementation"
1013

11-
mavenCentral.isEnabled = true
12-
1314
framework {
1415
lombok.isEnabled = true
1516
}
@@ -21,3 +22,15 @@ dependencies {
2122
}
2223

2324
java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))
25+
26+
centralPortal {
27+
username = System.getenv("SONATYPE_USERNAME")
28+
password = System.getenv("SONATYPE_PASSWORD")
29+
name = remora.artifactId
30+
publishingType = PublishingType.USER_MANAGED
31+
}
32+
33+
signing {
34+
useInMemoryPgpKeys(System.getenv("GPG_KEY"), System.getenv("GPG_PASSPHRASE"))
35+
sign(publishing.publications)
36+
}

0 commit comments

Comments
 (0)