Skip to content

Commit

Permalink
bumped package version, updated changelog and readme files
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldigas committed Jun 28, 2020
1 parent 5c57b27 commit 6298e77
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.0] - 2020-05-25
### Added
- `@HoconPropertySource` annotation. You can use it to load HOCON files to env,
just like you load `*.properties` files with Spring's `@PropertySource`
### Changed
- Project is built against SpringBoot 2.2. Dependency still uses `provided` scope
so it should not be a problem to use any version you prefer though, as Spring's API is stable
- Hocon dependency bumped to 1.4.0
### Fixed
- Empty lists now added to processed properties, so you can override non-empty list with empty.

Kudos to [FingolfinTEK](https://github.com/FingolfinTEK) for empty list fix and `@HoconPropertySource` feature!

## [0.3.0] - 2020-05-25
### Added
- Support for org.springframework.boot.origin.TextResourceOrigin
Expand All @@ -27,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial support for hocon config files as spring property source

[0.4.0]: https://github.com/zeldigas/spring-hocon-property-source/compare/0.3.0...0.4.0
[0.3.0]: https://github.com/zeldigas/spring-hocon-property-source/compare/0.2.2...0.3.0
[0.2.2]: https://github.com/zeldigas/spring-hocon-property-source/compare/0.2.1...0.2.2
[0.2.1]: https://github.com/zeldigas/spring-hocon-property-source/compare/0.1...0.2.1
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@ of hocon configuration

# How to use it in my spring boot code?

**Version 0.2 is aimed for SpringBoot 2.0. For 1.x check version 0.1**
**Version 0.4 is aimed for SpringBoot 2.2. For 1.x check version 0.1**

1. Add a dependency to your maven project

<dependency>
<groupId>com.github.zeldigas</groupId>
<artifactId>spring-hocon-property-source</artifactId>
<version>0.2.2</version>
<version>0.4.0</version>
</dependency>

2. In `META-INF/factories` file add the following line

org.springframework.boot.env.PropertySourceLoader=com.github.zeldigas.spring.env.HoconPropertySourceLoader

3. Place your HOCON configuration to *.conf files
4. Enjoy!
4. Enjoy!

Alternatively you can use `@HoconPropertySource("my-hocon.conf")` annotation to load
specific file on classpath just like you can do with `@PropertySource` annotation for
`*.properties` files.
2 changes: 1 addition & 1 deletion hocon-property-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<dependency>
<groupId>com.github.zeldigas</groupId>
<artifactId>spring-hocon-property-source</artifactId>
<version>0.3.0</version>
<version>0.4.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
2 changes: 1 addition & 1 deletion spring-hocon-property-source/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.zeldigas</groupId>
<artifactId>spring-hocon-property-source</artifactId>
<version>0.3.0</version>
<version>0.4.0</version>

<name>Spring HOCON property source</name>
<description>Property source loader for Spring that add support for HOCON format files as property sources
Expand Down

0 comments on commit 6298e77

Please sign in to comment.