gradle for publish #339
This commit is contained in:
parent
50c7ab0ee7
commit
3e17914470
@ -1,5 +1,27 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
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 {
|
dependencies {
|
||||||
|
|||||||
@ -1,5 +1,27 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
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 {
|
dependencies {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user