Add gradle publish
This commit is contained in:
parent
50c7ab0ee7
commit
300a6fa49a
2 changed files with 52 additions and 0 deletions
16
build.gradle
16
build.gradle
|
|
@ -29,6 +29,22 @@ allprojects {
|
|||
google()
|
||||
}
|
||||
|
||||
apply plugin: "maven-publish"
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "GitHubPackages"
|
||||
url = uri("https://maven.pkg.github.com/$System.env.REPO")
|
||||
credentials {
|
||||
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
|
||||
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
publications {
|
||||
gpr(MavenPublication)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue