Skip to content

Commit

Permalink
Add publishing to build.gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Sep 15, 2020
1 parent ca223da commit 2a5802c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,21 @@ repositories {
mavenCentral()
jcenter()
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/netomi/sudoku-solver")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.kotlin)
}
}
}

0 comments on commit 2a5802c

Please sign in to comment.