I have a Kotlin + Spring Boot project with multiple projects (therefore, multiple build.gradle
files). One particular build.gradle
file contains the following:
plugins {
id('kotlin-kapt')
}
I would like to figure out where this kotlin-kapt
dependency is coming from. I mean, there has to be something specified within a dependency {}
block or so that’s required for kotlin-kapt
to be resolved successfully. What is the most efficient way to figure this out? Is there maybe a gradle command to show such dependencies?
What I’ve tried already is to execute the following gradle command:
./gradlew :my-project:my-subproject:dependencies
The output includes something like the following:
kapt
\--- org.hibernate:hibernate-jpamodelgen:x.x.x.Final
+--- org.jboss.logging:jboss-logging:x.x.x.Final
+--- javax.xml.bind:jaxb-api:x.x.x
| \--- javax.activation:javax.activation-api:x.x.x
\--- org.glassfish.jaxb:jaxb-runtime:x.x.x
+--- javax.xml.bind:jaxb-api:x.x.x (*)
+--- org.glassfish.jaxb:txwx:x.x.x
[… more]
\--- javax.activation:javax.activation-api:x.x.x
but I don’t think this really tells me where kotlin-kapt is coming from, because I don’t expect hibernate-jpamodelgen to include kapt. The relation is probably more in the other direction, in the sense that the kapt annotation processor is applied to jpamodelgen.
Any help is appreciated!