add common
diff --git a/common/build.gradle b/common/build.gradle
index dcfba9e..e3e1704 100644
--- a/common/build.gradle
+++ b/common/build.gradle
@@ -1,5 +1,33 @@
plugins {
- id 'java'
+ id 'java-library'
+ id 'maven-publish'
+ id "com.palantir.git-version" version "0.12.0-rc2"
+}
+
+group = rootProject.group
+version = gitVersion()
+
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ groupId = project.group
+ artifactId = project.name
+ version = version
+ from components.java
+ }
+ }
+ repositories {
+ maven {
+ // change URLs to point to your repos, e.g. http://my.org/repo
+ def releasesRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/"
+ def snapshotsRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/snapshot/"
+ url = version.endsWith('dirty') ? snapshotsRepoUrl : releasesRepoUrl
+ credentials(PasswordCredentials) {
+ username = nxUser
+ password = nxPassword
+ }
+ }
+ }
}
dependencies {