Commit d32d7dad by Gil Sade

added publish

parent ad8dbf72
Pipeline #6 skipped in 0 seconds
Showing with 21 additions and 3 deletions
group 'com.ipgallery'
version '1.0.0'
apply plugin: 'java'
apply plugin: 'maven-publish'
def gitLog() { return "git log --pretty=format:'%h' -n 1".execute().text.trim().replaceAll("'", "") }
group = 'com.ipgallery'
version = '1.0.0-' + gitLog()
sourceCompatibility = 1.8
repositories {
......@@ -28,3 +29,20 @@ jar {
// to remove "no manifiest section for signature"
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}
publishing {
publications {
repositories.maven {
url 'http://172.16.1.132:8081/repository/internal'
credentials {
username "admin"
password "giptmgr1"
}
}
mavenJava(MavenPublication) {
artifactId 'location-service'
from components.java
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment