diff --git a/brouter-codec/build.gradle b/brouter-codec/build.gradle index 22faffe..e425438 100644 --- a/brouter-codec/build.gradle +++ b/brouter-codec/build.gradle @@ -1,5 +1,27 @@ plugins { id 'java-library' + id 'maven-publish' +} + +publishing { + repositories { + maven { + name = "Github" + url = uri("https://maven.pkg.github.com//") + credentials { + username = findProperty("github.username") + password = findProperty("github.token") + } + } + } + publications { + register("jar", MavenPublication) { + from(components["java"]) + pom { + url.set("https://github.com//.git") + } + } + } } dependencies { diff --git a/brouter-core/build.gradle b/brouter-core/build.gradle index c96982f..42ff106 100644 --- a/brouter-core/build.gradle +++ b/brouter-core/build.gradle @@ -1,5 +1,27 @@ plugins { id 'java-library' + id 'maven-publish' +} + +publishing { + repositories { + maven { + name = "Github" + url = uri("https://maven.pkg.github.com//") + credentials { + username = findProperty("github.username") + password = findProperty("github.token") + } + } + } + publications { + register("jar", MavenPublication) { + from(components["java"]) + pom { + url.set("https://github.com//.git") + } + } + } } dependencies {