Skip to content

Commit

Permalink
solve build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Dec 19, 2024
1 parent 386d510 commit f94fd4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,7 @@ jobs:
with:
name: Package
path: tmp-artifacts
#
#- name: "check file"
# run: |
# tar -czvf tmp-artifacts.tar.gz --transform='s|.*/||' ./tmp-artifacts
#
#- name: Release artifacts
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# body: "# Release ${{github.ref}} \n"
# files: |
# LICENSE
# build/libs/*.jar
#

- name: "Create release"
run: gh release create ${GITHUB_REF_NAME} tmp-artifacts/* --generate-notes
env:
Expand Down
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,19 @@ dependencies {

// Define tasks to create JARs with custom names based on the environment
task jarDev(type: Jar) {
archiveBaseName.set('druid-social-identity-provider-dev')
archiveVersion.set(version)
from sourceSets.main.output
// Include the development properties file
from('src/main/resources/config-dev.properties') {
into('config')
}
}

task jarProd(type: Jar) {
archiveBaseName.set('druid-social-identity-provider-prod')
archiveVersion.set(version)
from sourceSets.main.output
// Include the production properties file
from('src/main/resources/config-prod.properties') {
into('config')
Expand Down

0 comments on commit f94fd4d

Please sign in to comment.