Skip to content

Commit 293fb31

Browse files
committed
build: added ghp publication
1 parent 7736287 commit 293fb31

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,20 @@ publishing {
255255
}
256256
}
257257
}
258+
repositories {
259+
if(currentBranch == "master" || currentBranch.startsWith("maintenance") || currentBranch.startsWith("mps")) {
260+
maven {
261+
name = "GitHubPackages"
262+
url = uri("https://maven.pkg.github.com/IETS3/iets3.opensource")
263+
if(project.hasProperty("gpr.token")) {
264+
credentials {
265+
username = project.findProperty("gpr.user")
266+
password = project.findProperty("gpr.token")
267+
}
268+
}
269+
}
270+
}
271+
}
258272

259273
publications {
260274
openSource(MavenPublication) {

0 commit comments

Comments
 (0)