Skip to content

Commit

Permalink
APPENG-1097: Revert environment post processing order change (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
normanma-tw authored Mar 3, 2025
1 parent 4b9b5a9 commit 82c8fe2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ 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.1.3] - 2025-03-03

### Changed
- Reverted changes in `0.1.2`.

## [0.1.2] - 2025-02-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.1.2
version=0.1.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.boot.logging.DeferredLogFactory;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.core.env.ConfigurableEnvironment;

@Slf4j
public class WiseEnvironmentEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered {
@Order
public class WiseEnvironmentEnvironmentPostProcessor implements EnvironmentPostProcessor {

private final Log log;

Expand Down Expand Up @@ -40,10 +41,4 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp

environment.getPropertySources().addLast(new WiseEnvironmentDefaultsPropertySource());
}

@Override
public int getOrder() {
// To allow for environment post processors that _really_ need to run before this
return Ordered.HIGHEST_PRECEDENCE + 100;
}
}

0 comments on commit 82c8fe2

Please sign in to comment.