Skip to content

Commit b10c646

Browse files
committed
Update public build file to use GitHubPackages for publishing
GitOrigin-RevId: 80c834adc4ec14dcb0ba9858f480eed300cdae9b
1 parent ef05558 commit b10c646

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,18 @@ shadowJar.archiveFileName = "ShowScript-all.jar"
8080

8181
publishing {
8282
publications {
83-
maven(MavenPublication) {
84-
from(components.java)
83+
gpr(MavenPublication) {
84+
from components.java
8585
}
8686
}
8787
repositories {
8888
maven {
89-
url = uri('https://repo.maven.apache.org/maven2/')
89+
name = "GitHubPackages"
90+
url = uri("https://maven.pkg.github.com/OWNER/REPOSITORY")
91+
credentials {
92+
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
93+
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
94+
}
9095
}
9196
}
9297
}

0 commit comments

Comments
 (0)