59 lines
1.9 KiB
Groovy
59 lines
1.9 KiB
Groovy
apply plugin: 'maven-publish'
|
|
|
|
task javadocsJar(type: Jar) {
|
|
classifier = 'javadoc'
|
|
}
|
|
|
|
publishing {
|
|
publications.all {
|
|
artifact javadocsJar
|
|
|
|
pom {
|
|
description = ""
|
|
name = "${project.name}"
|
|
url = "https://git.inmo.dev:8322/PostsSystem/Core"
|
|
|
|
scm {
|
|
developerConnection = "scm:git:[fetch=]ssh://git@git.inmo.dev:8322/PostsSystem/Core.git[push=]ssh://git@git.inmo.dev:8322/PostsSystem/Core.git"
|
|
url = "ssh://git@git.inmo.dev:8322/PostsSystem/Core.git"
|
|
}
|
|
|
|
developers {
|
|
|
|
developer {
|
|
id = "InsanusMokrassar"
|
|
name = "Aleksei Ovsiannikov"
|
|
email = "ovsyannikov.alexey95@gmail.com"
|
|
}
|
|
|
|
|
|
developer {
|
|
id = "000Sanya"
|
|
name = "Syrov Aleksandr"
|
|
email = "000sanya.000sanya@gmail.com"
|
|
}
|
|
|
|
}
|
|
|
|
licenses {
|
|
|
|
license {
|
|
name = "Apache Software License 2.0"
|
|
url = "https://opensource.org/licenses/Apache-2.0"
|
|
}
|
|
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/PostsSystem/Core")
|
|
credentials {
|
|
username = project.hasProperty('GITHUBPACKAGES_USER') ? project.property('GITHUBPACKAGES_USER') : System.getenv('GITHUBPACKAGES_USER')
|
|
password = project.hasProperty('GITHUBPACKAGES_PASSWORD') ? project.property('GITHUBPACKAGES_PASSWORD') : System.getenv('GITHUBPACKAGES_PASSWORD')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|