diff --git a/.classpath b/.classpath
index 1b6c03d..b2878c1 100644
--- a/.classpath
+++ b/.classpath
@@ -1,7 +1,13 @@
-
-
+
+
+
+
+
+
+
+
-
+
diff --git a/.gitignore b/.gitignore
index f77e62c..5cf6476 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,6 +23,8 @@
hs_err_pid*
/bin/
/.gradle/
+/.settings/
/build/
+/dependences/
/lib/
-/dependences/
\ No newline at end of file
+*.properties
\ No newline at end of file
diff --git a/.project b/.project
index f9038fc..9804a1d 100644
--- a/.project
+++ b/.project
@@ -10,6 +10,11 @@
+
+ org.eclipse.buildship.core.gradleprojectbuilder
+
+
+
org.eclipse.babel.editor.rbeBuilder
@@ -19,5 +24,6 @@
org.eclipse.jdt.core.javanature
com.jaspersoft.studio.babel.editor.rbeNature
+ org.eclipse.buildship.core.gradleprojectnature
diff --git a/build.gradle b/build.gradle
index 0c25e7d..dc998c9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,14 +1,23 @@
-plugins {
- id 'java-library'
-}
+apply plugin: 'java-library'
+apply plugin: 'maven-publish'
repositories {
- jcenter()
- flatDir {
- dirs 'dependences'
+ mavenLocal()
+ mavenCentral()
+ maven {
+ url = "https://maven.pkg.github.com/erpcya/Repository"
+ credentials {
+ username = System.properties['deploy.user'] ?: System.getenv("GITHUB_DEPLOY_USER")
+ password = System.properties['deploy.token'] ?: System.getenv("GITHUB_DEPLOY_TOKEN")
+ }
}
}
+sourceCompatibility = 1.8
+targetCompatibility = 1.8
+
+def libraryVersion = '1.0.0'
+
sourceSets {
main {
java {
@@ -18,7 +27,7 @@ sourceSets {
}
dependencies {
- implementation name: 'Adempiere'
+ compileOnly fileTree(dir: 'dependences', include: ['*.jar'])
}
jar {
@@ -44,4 +53,42 @@ task createRelease(type: Zip) {
ant.checksum file: file
}
}
+}
+
+publishing {
+ repositories {
+ maven {
+ url = "https://maven.pkg.github.com/erpcya/Repository"
+ credentials {
+ username = System.properties['deploy.user'] ?: System.getenv("GITHUB_DEPLOY_USER")
+ password = System.properties['deploy.token'] ?: System.getenv("GITHUB_DEPLOY_TOKEN")
+ }
+ }
+ }
+ publications {
+ mavenJava(MavenPublication) {
+ groupId 'org.erpya.adempiere.tools'
+ artifactId 'withholding'
+ version libraryVersion
+ artifact jar
+ pom {
+ name = 'ADempiere Withholding Engine'
+ description = 'This library have all related to Withholding Engine'
+ url = 'https://www.erpya.com/'
+ licenses {
+ license {
+ name = 'GNU General Public License v3.0'
+ url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
+ }
+ }
+ developers {
+ developer {
+ id = 'yamelsenih'
+ name = 'Yamel Senih'
+ email = 'ysenih@erpya.com'
+ }
+ }
+ }
+ }
+ }
}
\ No newline at end of file