spring boot2 にしたら `bootRun { systemProperty 'spring.profiles.active', 'local' } }` が動かないよって場合
spring-boot 2 では以下の書き方は許容されなくなった。
bootRun {
systemProperty 'spring.profiles.active', 'local'
}
以下のように変更する。
bootRun {
execSpec {
systemProperty 'com.example.foo', 'bar'
}
}
https://twitter.com/ankinson/status/918498381768658944 ref. https://docs.spring.io/spring-boot/docs/2.0.0.M5/gradle-plugin/reference/html/#running-your-application
Published: 2017-11-21(Tue) 02:22