Skip to content

Commit

Permalink
Add custom version
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Apr 18, 2023
1 parent 885bde5 commit 70e542d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish_with_gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
run: gradle publish
env:
ADEMPIERE_LIBRARY_VERSION: ${{ github.event.release.tag_name }}
ADEMPIERE_LIBRARY_GROUP: ${{ secrets.ADEMPIERE_LIBRARY_GROUP }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_TOKEN }}
Expand Down
14 changes: 8 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ allprojects {

sourceCompatibility = 1.11
def baseVersion = '3.9.4'
def baseGroupId = 'io.github.adempiere'
def customGroupId = System.getenv("ADEMPIERE_LIBRARY_GROUP")

dependencies {
api fileTree(
Expand All @@ -22,11 +24,11 @@ dependencies {
]
)
// ADempiere Core
api "io.github.adempiere:base:${baseVersion}"
api "io.github.adempiere:human-resource-and-payroll:${baseVersion}"
api "io.github.adempiere:store:${baseVersion}"
api "io.github.adempiere:point-of-sales:${baseVersion}"
api 'io.github.adempiere:withholding-engine:adempiere-3.9.4-1.2.9'
api "${baseGroupId}:base:${baseVersion}"
api "${baseGroupId}:human-resource-and-payroll:${baseVersion}"
api "${baseGroupId}:store:${baseVersion}"
api "${baseGroupId}:point-of-sales:${baseVersion}"
api '${baseGroupId}:withholding-engine:adempiere-3.9.4-1.2.9'
// https://search.maven.org/artifact/javax.mail/javax.mail-api/1.6.2/jar
api 'javax.mail:javax.mail-api:1.6.2'
}
Expand Down Expand Up @@ -67,7 +69,7 @@ publishing {
}
publications {
mavenJava(MavenPublication) {
groupId 'io.github.adempiere'
groupId customGroupId
artifactId 'location-venezuela'
version
from components.java
Expand Down

0 comments on commit 70e542d

Please sign in to comment.