Skip to content

Commit 2a5802c

Browse files
committed
Add publishing to build.gradle.
1 parent ca223da commit 2a5802c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,21 @@ repositories {
117117
mavenCentral()
118118
jcenter()
119119
}
120+
121+
publishing {
122+
repositories {
123+
maven {
124+
name = "GitHubPackages"
125+
url = uri("https://maven.pkg.github.com/netomi/sudoku-solver")
126+
credentials {
127+
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
128+
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
129+
}
130+
}
131+
}
132+
publications {
133+
gpr(MavenPublication) {
134+
from(components.kotlin)
135+
}
136+
}
137+
}

0 commit comments

Comments
 (0)