Skip to content

Commit

Permalink
Merge pull request #111 from devatherock/upgrade-java-to-native
Browse files Browse the repository at this point in the history
chore: Upgraded java-to-native to 2.1.0
  • Loading branch information
devatherock committed Jun 6, 2023
2 parents 3fbd79e + 24fa5fb commit ec5444e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:

java_to_native:
docker:
- image: devatherock/java-to-native:2.0.0
- image: devatherock/java-to-native:2.1.0
auth:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
--entrypoint='' \
-e PARAMETER_JAR_NAME=build/native/libs/YamlValidator.jar \
-e PARAMETER_CONFIG_FILE=config/graal.yml \
devatherock/java-to-native:2.0.0-arm64 sh /scripts/entry-point.sh && upx -4 YamlValidator
devatherock/java-to-native:2.1.0 sh /scripts/entry-point.sh && upx -4 YamlValidator
TAG=${CIRCLE_SHA1:0:8}-arm64
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
docker build \
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Cached build dependencies separately
- Integration tested the arm image
- [#106](https://github.com/devatherock/drone-yaml-validator/issues/106): Built the arm binary in an arm machine
- Upgraded `java-to-native` to `2.1.0`

## [2.1.0] - 2022-05-18
### Added
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
docker_tag=latest
java_to_native_version=2.1.0

clean:
./gradlew clean
Expand All @@ -23,6 +24,6 @@ binary-build:
--entrypoint='' \
-e PLUGIN_JAR_NAME=build/native/libs/YamlValidator.jar \
-e PLUGIN_CONFIG_FILE=config/graal.yml \
devatherock/java-to-native:2.0.0 sh /scripts/entry-point.sh && upx -4 YamlValidator
devatherock/java-to-native:$(java_to_native_version) sh /scripts/entry-point.sh && upx -4 YamlValidator
docker-build:
docker build -t devatherock/drone-yaml-validator:$(docker_tag) .
2 changes: 1 addition & 1 deletion YamlValidator.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@Grab(group = 'org.yaml', module = 'snakeyaml', version = '1.27')
@Grab(group = 'net.sourceforge.argparse4j', module = 'argparse4j', version = '0.8.1')
@Grab(group = 'net.sourceforge.argparse4j', module = 'argparse4j', version = '0.9.0')

import groovy.transform.Field
import java.util.logging.Logger
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ sourceCompatibility = '1.6'
targetCompatibility = '1.6'

dependencies {
implementation group: 'org.codehaus.groovy', name: 'groovy', version: '2.5.22'
// Groovy version should match the version used within scriptjar
implementation group: 'org.codehaus.groovy', name: 'groovy', version: '2.5.7'

// Build dependency versions should match the ones used within the script
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.0'
implementation group: 'net.sourceforge.argparse4j', name: 'argparse4j', version: '0.9.0'

Expand Down Expand Up @@ -45,7 +48,7 @@ ext.jacoco = [
'BRANCH': 0.67, // DO NOT CHANGE unless there is a huge improvement. The values fluctuate in CI
'COMPLEXITY': 0.66, // DO NOT CHANGE unless there is a huge improvement. The values fluctuate in CI
'INSTRUCTION': 0.93,
'LINE': 0.94
'LINE': 0.90
]
]
]
Expand Down

0 comments on commit ec5444e

Please sign in to comment.