core/publish.gradle

61 lines
2.1 KiB
Groovy
Raw Permalink Normal View History

2020-11-25 12:40:45 +00:00
apply plugin: 'maven-publish'
task javadocsJar(type: Jar) {
classifier = 'javadoc'
}
publishing {
publications.all {
artifact javadocsJar
pom {
2021-11-24 07:52:27 +00:00
description = "${project.name}"
2020-11-25 12:40:45 +00:00
name = "${project.name}"
2021-11-24 07:52:27 +00:00
url = "https://github.com/PostsSystem/core.git"
2020-11-25 12:40:45 +00:00
scm {
2021-11-24 07:52:27 +00:00
developerConnection = "scm:git:[fetch=]git@github.com:PostsSystem/core.git[push=]git@github.com:PostsSystem/core.git"
url = "git@github.com:PostsSystem/core.git"
2020-11-25 12:40:45 +00:00
}
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"
2021-02-27 14:27:22 +00:00
url = "https://opensource.org/licenses/Apache-2.0"
2020-11-25 12:40:45 +00:00
}
}
}
repositories {
2021-11-24 07:52:27 +00:00
if ((project.hasProperty('GITHUBPACKAGES_USER') || System.getenv('GITHUBPACKAGES_USER') != null) && (project.hasProperty('GITHUBPACKAGES_PASSWORD') || System.getenv('GITHUBPACKAGES_PASSWORD') != null)) {
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')
}
2020-11-25 12:40:45 +00:00
}
}
}
}
2021-02-27 14:27:22 +00:00
}