marzelwidmer
12/18/2020, 5:31 PM1.4.21
and spring 2.4.1
on place.. with kotlin gradle .kts
I am new in gradleRobert Jaros
12/18/2020, 6:07 PMRobert Jaros
12/18/2020, 6:07 PMmarzelwidmer
12/18/2020, 6:08 PMsdeleuze
12/18/2020, 6:32 PMmarzelwidmer
12/18/2020, 6:40 PMspring boot auto configuration
project with kotlin
and gradle.kts
I think I have to reset my self… and start over again 🙂. to get the basic for gradle first.marzelwidmer
12/19/2020, 6:09 AMe: /Users/morpheus/dev/github/kboot-spring-boot-starter/kboot-spring-boot-starter-autoconfigure/src/main/kotlin/ch/keepcalm/exception/ExceptionTranslator.kt: (136, 21): Calls to static methods in Java interfaces are prohibited in JVM target 1.6. Recompile with '-jvm-target 1.8'
e: /Users/morpheus/dev/github/kboot-spring-boot-starter/kboot-spring-boot-starter-autoconfigure/src/main/kotlin/ch/keepcalm/exception/ExceptionTranslator.kt: (202, 39): Super calls to Java default methods are prohibited in JVM target 1.6. Recompile with '-jvm-target 1.8'
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':kboot-spring-boot-starter-autoconfigure:compileKotlin'.
> Compilation error. See log for more details
The following issue
I fixed now with the following configuration
tasks.withType<KotlinCompile> {
println("Configuring KotlinCompile $name in project ${project.name}...")
kotlinOptions {
languageVersion = "1.4"
apiVersion = "1.4"
jvmTarget = "11"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
BUILD SUCCESSFUL in 1s
16 actionable tasks: 10 executed, 6 up-to-date
❯ gradle build publishToMavenLocal
Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
> Configure project :
Enabling Java plugin in project kboot-spring-boot-starter...
Enabling maven-publish plugin in project kboot-spring-boot-starter...
Enabling Kotlin Spring plugin in project kboot-spring-boot-starter...
Enabling Java plugin in project kboot-spring-boot-starter-autoconfigure...
Enabling maven-publish plugin in project kboot-spring-boot-starter-autoconfigure...
Enabling Kotlin Spring plugin in project kboot-spring-boot-starter-autoconfigure...
> Configure project :kboot-spring-boot-starter-autoconfigure
Configuring KotlinCompile compileKotlin in project kboot-spring-boot-starter-autoconfigure...
Configuring KotlinCompile compileTestKotlin in project kboot-spring-boot-starter-autoconfigure...
BUILD SUCCESSFUL in 5s
16 actionable tasks: 6 executed, 10 up-to-date
╭─ ~/dev/github/kboot-spring-boot-starter master !1 ?1 ·······
BUT
in the Intellij
I have the following Problems…marzelwidmer
12/19/2020, 6:12 AMmarzelwidmer
12/19/2020, 1:34 PMmarzelwidmer
12/19/2020, 1:34 PMmarzelwidmer
12/20/2020, 9:31 PMmarzelwidmer
12/27/2020, 9:40 PM