Add gradle publish

This commit is contained in:
Manuel Fuhr 2021-10-06 11:38:47 +02:00
parent 50c7ab0ee7
commit 300a6fa49a
2 changed files with 52 additions and 0 deletions

View file

@ -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) {