Nikky
05/22/2021, 3:59 PMConflicting application feature is already installed with the same key as `Default Headers`
?
this happens on the first line in my ktor application
block, definitly not duplicate registration in the code
seems like koin 3.0.2 pulls in kotlin 1.5.0 which messes up the classpath and confuses ktor
rolling that back fixed it for a while..
for some reason these settings have a impact.. especially language and api version
tasks.withType<KotlinCompile> {
kotlinOptions {
apiVersion = "1.3"
languageVersion = "1.3"
jvmTarget = "1.8" // TODO: install newer java and use JAVA 15/16
}
}
once i set it to language/api level 1.4
it triggers the error on startupAleksei Tirman [JB]
06/02/2021, 8:29 AMNikky
06/02/2021, 9:44 AMinstall(CORS) {
maxAgeDuration = 12.toDuration(DurationUnit.HOURS)
anyHost()
}
when languageLevel
is set to 1.3 or 1.5 it works fine, but when it is set to 1.4 it causes the ktor app to reload at this point and feature before this get installed twice.. which leads to a errorNikky
06/02/2021, 9:47 AMNikky
06/02/2021, 9:47 AMmaxAgeInSeconds
instead