问题 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