nklmish
06/28/2017, 12:11 PMspringBoot {
executable = true
}
in kotlinGradleDslmadhead
06/28/2017, 12:21 PMconfigure<SpringBootPluginExtension> {
executable = true
}
nklmish
06/28/2017, 12:34 PMconfigure<SpringBootPluginExtension> {
isExecutable = true
}
but the build file doesn't compile (can't find the class SpringBootPluginExtension)sdeleuze
06/28/2017, 12:35 PMnklmish
07/04/2017, 7:10 PMlateinit
is not playing well when spring is reading and initialising properties via yaml
. I have a class @ConfigurationProperties("maintenance")
class MaintenanceProperties {
var foo : String ? = null
}
when we change it to => lateinit var foo : String , kotlin gives us runtime error lateinit property foo has not been initialized
Without lateinit
The way I am forced to access it is properties.foo!!
,one way to get rid of !!
is to perform a null check but this approch doesn't work well when we have nested properties (we end up with ugly null checks). Is there a better way to get rid of !!
and make the application failed during startup if the property is not defined ?rpalcolea
07/04/2017, 11:27 PMnklmish
07/05/2017, 6:57 AMsdeleuze
07/05/2017, 7:54 AMdouglarek
07/05/2017, 10:08 AMConfiguration problem: @Configuration class 'Configuration' may not be final. Remove the final modifier to continue.
when I debug; I have used kotlin-allopen pluginsdeleuze
07/05/2017, 1:13 PMkotlin-spring
variant which is preconfigued with Spring annotatons, see https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin. Also IDEA make sure to refresh Gradle config and run a full rebuild.the.fine
07/06/2017, 3:51 AMthe.fine
07/06/2017, 4:18 AMsdeleuze
07/06/2017, 8:24 AMthe.fine
07/06/2017, 9:45 AMthe.fine
07/06/2017, 11:55 AMdh44t
07/06/2017, 12:40 PMthe.fine
07/06/2017, 12:45 PMdh44t
07/06/2017, 12:47 PMdh44t
07/06/2017, 12:48 PMthe.fine
07/06/2017, 1:02 PMdh44t
07/06/2017, 1:04 PMthe.fine
07/06/2017, 1:05 PMthe.fine
07/06/2017, 1:08 PMdh44t
07/06/2017, 1:09 PMthe.fine
07/06/2017, 1:10 PMthe.fine
07/06/2017, 1:27 PMthe.fine
07/06/2017, 1:27 PMthe.fine
07/06/2017, 1:34 PMsdeleuze
07/06/2017, 2:04 PM