core/publish.gradle

59 lines
1.9 KiB
Groovy
Raw 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 {
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"
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 {
maven {
2021-02-27 14:27:22 +00:00
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/PostsSystem/Core")
2020-11-25 12:40:45 +00:00
credentials {
2021-02-27 14:27:22 +00:00
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
}