Skip to content

Commit

Permalink
update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jan 21, 2025
1 parent 6475c62 commit b70eb75
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 31 deletions.
47 changes: 18 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,37 +264,26 @@ jobs:


# # This step will fail the build if snyk fails
# - name: Run Snyk as a blocking step
# uses: snyk/actions/gradle@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# JAVA_HOME: /usr/lib/jvm/default-java/
# with:
# command: test
# args: >
# --org=${{ secrets.SNYK_ORG_ID }}
# --project-name=${{ github.repository }}
# --severity-threshold=high
# --fail-on=all

# # This step will send the results of snyk to the snyk servers
# - name: Run Snyk on Python
# uses: snyk/actions/python-3.8@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# command: monitor
# args: >
# --org=${{ secrets.SNYK_ORG_ID }}
# --project-name=${{ github.repository }}
- name: Run Snyk as a blocking step
uses: snyk/actions/gradle@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
JAVA_HOME: /usr/lib/jvm/default-java/
with:
command: test
args: >
--org=${{ secrets.SNYK_ORG_ID }}
--project-name=${{ github.repository }}
--severity-threshold=high
--fail-on=all
# Lastly run the tests bundled with the repo
# - name: Test and coverage
# run: |
# gradle wrapper --gradle-version 6.3
# ./gradlew test
# ./gradlew mergeJUnitReports
# junit 'build/test-results/test/TESTS-TestSuites.xml'
- name: Test and coverage
run: |
gradle wrapper --gradle-version 6.3
./gradlew test
./gradlew mergeJUnitReports
junit 'build/test-results/test/TESTS-TestSuites.xml'
#########################################################################
# Publish release to releases
Expand Down
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ configurations {
}
}

configurations.all {
resolutionStrategy {
force 'junit:junit:4.13.2' // Force the fixed version
}
}

dependencies {
compile group: 'com.vividsolutions', name: 'jts', version: '1.13'
compile group: 'gov.nasa.earthdata', name: 'cumulus-message-adapter', version: '2.0.0'
Expand All @@ -55,11 +61,13 @@ dependencies {
compile group: 'com.google.code.gson', name: 'gson', version: '2.9.0'

compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
testCompile group: 'junit', name: 'junit', version: '4.13.2'

compile group: 'org.json', name: 'json', version: '20231013'

compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
compile group: 'commons-io', name: 'commons-io', version: '2.8.0'
compile group: 'edu.ucar', name: 'cdm', version: '4.6.20'
compile group: 'commons-io', name: 'commons-io', version: '2.18.0'
compile group: 'edu.ucar', name: 'cdm-core', version: '5.7.0'

compile group: 'org.geotools', name: 'gt-shapefile', version: '29.2'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
Expand Down

0 comments on commit b70eb75

Please sign in to comment.