gradle for publish #339

This commit is contained in:
afischerdev 2021-10-06 20:18:26 +02:00
parent 50c7ab0ee7
commit 3e17914470
2 changed files with 44 additions and 0 deletions

View file

@ -1,5 +1,27 @@
plugins {
id 'java-library'
id 'maven-publish'
}
publishing {
repositories {
maven {
name = "Github"
url = uri("https://maven.pkg.github.com/<USERNAME>/<REPO>")
credentials {
username = findProperty("github.username")
password = findProperty("github.token")
}
}
}
publications {
register("jar", MavenPublication) {
from(components["java"])
pom {
url.set("https://github.com/<OWNER>/<REPO>.git")
}
}
}
}
dependencies {

View file

@ -1,5 +1,27 @@
plugins {
id 'java-library'
id 'maven-publish'
}
publishing {
repositories {
maven {
name = "Github"
url = uri("https://maven.pkg.github.com/<USERNAME>/<REPO>")
credentials {
username = findProperty("github.username")
password = findProperty("github.token")
}
}
}
publications {
register("jar", MavenPublication) {
from(components["java"])
pom {
url.set("https://github.com/<OWNER>/<REPO>.git")
}
}
}
}
dependencies {