Skip to content

Commit c730565

Browse files
committed
Added --static and --no-fallback options as default
1 parent 8dc386a commit c730565

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- attach_workspace:
4040
at: ~/java-to-native
4141
- run: |
42-
TAG=0.1.0
42+
TAG=0.1.1
4343
docker build -t devatherock/java-to-native:$TAG .
4444
docker tag devatherock/java-to-native:$TAG devatherock/java-to-native:latest
4545
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.1.1] - 2020-06-20
4+
### Added
5+
- `--static` and `--no-fallback` options as default
6+
37
## [0.1.0] - 2020-06-20
48
### Added
59
- Initial version. Converts a jar or class into a native image, generating reflection configuration if required

CreateNativeImage.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ def nativeImageCommand = ['native-image', '-cp', classPath]
108108
if (config[CONFIG_BUILD_OVERRIDE_ARGS]) {
109109
nativeImageCommand.addAll(config[CONFIG_BUILD_OVERRIDE_ARGS])
110110
} else {
111-
nativeImageCommand.addAll([ARG_GRAPE_DISABLE, '--no-server', '--allow-incomplete-classpath',
112-
'--report-unsupported-elements-at-runtime', '--initialize-at-build-time',
111+
nativeImageCommand.addAll([ARG_GRAPE_DISABLE, '--no-server', '--static', '--allow-incomplete-classpath',
112+
'--no-fallback', '--report-unsupported-elements-at-runtime', '--initialize-at-build-time',
113113
'--enable-url-protocols=http,https', "-H:ConfigurationFileDirectories=${reflectConfigPath}"])
114114

115115
if (config[CONFIG_BUILD_ADDITIONAL_ARGS]) {

DOCS.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ The following parameters can be set to configure the plugin.
1313
```yaml
1414
java_to_native:
1515
docker:
16-
- image: devatherock/java-to-native:0.1.0
16+
- image: devatherock/java-to-native:0.1.1
1717
working_directory: ~/drone-yaml-validator
1818
environment:
19-
PLUGIN_JAR_NAME: YamlValidator.jar
19+
PLUGIN_JAR_NAME: build/native/libs/YamlValidator.jar
2020
PLUGIN_CONFIG_FILE: config/graal.yml
2121
steps:
2222
- checkout
23+
- attach_workspace:
24+
at: ~/drone-yaml-validator
2325
- run: sh /scripts/entry-point.sh
2426
- persist_to_workspace:
2527
root: ~/drone-yaml-validator
@@ -35,8 +37,8 @@ steps:
3537
ruleset:
3638
branch: master
3739
event: push
38-
image: devatherock/java-to-native:0.1.0
40+
image: devatherock/java-to-native:0.1.1
3941
parameters:
40-
jar_name: YamlValidator.jar
42+
jar_name: build/native/libs/YamlValidator.jar
4143
config_file: config/graal.yml
4244
```

0 commit comments

Comments
 (0)