Replace hardcoded AppProperties values with Gradle ${} placeholders,
allowing version/channel/vendor to be configured via gradle.properties
or -P flags at build time.
Also refactor webhook configuration to flatten the properties hierarchy
by removing the intermediate WebhookProperties wrapper.
12 lines
280 B
Java
12 lines
280 B
Java
package com.onixbyte.deltaforceguide.properties;
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
@ConfigurationProperties(prefix = "app.common")
|
|
public record AppProperties(
|
|
String version,
|
|
String channel,
|
|
String vendor
|
|
) {
|
|
}
|