gradle-kotlin-dsl

gradle kotlin DSL extendsfrom

橙三吉。 提交于 2020-08-10 20:13:27
问题 How can I reformulate: testCompile.extendsFrom compileOnly of the Gradle Groovy DSL to its Kotlin-based equivalent? configurations { testCompile{ extendsFrom(compileOnly) } } My approach above fails. 回答1: configurations { testCompile { extendsFrom(configurations.compileOnly.get()) } } https://github.com/spring-projects/spring-boot/issues/16251 来源: https://stackoverflow.com/questions/62452133/gradle-kotlin-dsl-extendsfrom

Create fat jar from ktor Kotlin multiplatform project with Kotlin Gradle DSL

天大地大妈咪最大 提交于 2020-07-23 07:38:06
问题 Trying to create a runnable jar for a kotlin multiplatform project which includes a ktor server component, building with Kotlin Gradle DSL. I have seen several questions including Create fat jar from kotlin multiplatform project which asks and answers how to create the gradle build file in Groovy, but how do you do it in kotlin dsl? The groovy code that is reported to work is: kotlin { jvm() { withJava() jvmJar { manifest { attributes 'Main-Class': 'sample.MainKt' } from { configurations

Create fat jar from ktor Kotlin multiplatform project with Kotlin Gradle DSL

对着背影说爱祢 提交于 2020-07-23 07:37:16
问题 Trying to create a runnable jar for a kotlin multiplatform project which includes a ktor server component, building with Kotlin Gradle DSL. I have seen several questions including Create fat jar from kotlin multiplatform project which asks and answers how to create the gradle build file in Groovy, but how do you do it in kotlin dsl? The groovy code that is reported to work is: kotlin { jvm() { withJava() jvmJar { manifest { attributes 'Main-Class': 'sample.MainKt' } from { configurations

Unresolved Dependency on package in subproject

…衆ロ難τιáo~ 提交于 2020-07-07 04:28:24
问题 In my Kotlin spring boot project, I am using Kotlin DSL Gradle, with three subprojects. Two of which are security which depends on database . In IntelliJ, the application runs successfully and performs as expected (when run as a Spring Boot application run config). However, when I try to build the project with Gradle ./gradlew clean build I get e: /security/src/main/kotlin/com/path/security/jwt/JwtRealm.kt: (3, 26): Unresolved reference: database e: /security/src/main/kotlin/com/path/security

Unresolved Dependency on package in subproject

社会主义新天地 提交于 2020-07-07 04:28:17
问题 In my Kotlin spring boot project, I am using Kotlin DSL Gradle, with three subprojects. Two of which are security which depends on database . In IntelliJ, the application runs successfully and performs as expected (when run as a Spring Boot application run config). However, when I try to build the project with Gradle ./gradlew clean build I get e: /security/src/main/kotlin/com/path/security/jwt/JwtRealm.kt: (3, 26): Unresolved reference: database e: /security/src/main/kotlin/com/path/security