how can i share a common module with my gradle-plu...
# compiler
t
how can i share a common module with my gradle-plugin module and compiler-plugin module… since i’ve a composite build structure, the usual way of adding
implementation(project(":common"))
in gradle-plugin doesn’t seem to be working.. 🤔 am i missing something or doing it wrong…
m
Why are you using a composite build? Your Gradle and Kotlin plugins can live in the same build
t
@mbonnin i wanted a
sample
project that uses the gradle plugin, and composite build was the solution i found when i searched for it.
m
Right. For integration testing your Gradle plugin, this is the way.
Your
sample
project should be able to resolve your
":common"
project using the default dependency substitution
Just make sure you have
project.group
set in your
":common"
project and then you can reference it as
com.example:foo
If that doesn't work, can you share the error you have?
t
on second thought, what i needed was functional tests.., so i’ve switched to that. i’m sure i’ll need to create a sample project in some time… i’ll try this approach then and will keep you posted on this thread… thank you very much for your input martin
👍 1