Skip to content

Commit 0072182

Browse files
committed
Fixed the bug that was making config file mandatory
1 parent ca0ea31 commit 0072182

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- attach_workspace:
3939
at: ~/java-to-native
4040
- run: |
41-
TAG=0.1.2
41+
TAG=0.1.3
4242
docker build -t devatherock/java-to-native:$TAG .
4343
docker tag devatherock/java-to-native:$TAG devatherock/java-to-native:latest
4444
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.3] - 2020-06-21
4+
### Changed
5+
- Fixed the bug that was making config file mandatory
6+
37
## [0.1.2] - 2020-06-21
48
### Changed
59
- Stopped using environment variable `VELA`

CreateNativeImage.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ if (options.d) {
4242
}
4343

4444
// Read config file
45-
String configFile = options.c
4645
def config = [:]
47-
if (configFile) {
46+
if (options.c) {
4847
Yaml yaml = new Yaml()
49-
config.putAll(getFlattenedMap('', yaml.load(new File(configFile).text)))
48+
config.putAll(getFlattenedMap('', yaml.load(new File(options.c).text)))
5049
}
5150
logger.fine({ String.valueOf(config) })
5251

DOCS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ 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.2
16+
- image: devatherock/java-to-native:0.1.3
1717
working_directory: ~/drone-yaml-validator
1818
environment:
1919
PLUGIN_JAR_NAME: build/native/libs/YamlValidator.jar
@@ -37,7 +37,7 @@ steps:
3737
ruleset:
3838
branch: master
3939
event: push
40-
image: devatherock/java-to-native:0.1.2
40+
image: devatherock/java-to-native:0.1.3
4141
parameters:
4242
jar_name: build/native/libs/YamlValidator.jar
4343
config_file: config/graal.yml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Execute from the working directory:
1515
docker run --rm \
1616
-e PLUGIN_JAR_NAME=YamlValidator.jar \
1717
-e PLUGIN_CONFIG_FILE=config/graal.yml \
18-
devatherock/java-to-native:0.1.2
18+
devatherock/java-to-native:0.1.3
1919
```
2020

2121
## Configuration

0 commit comments

Comments
 (0)