<https://kotlinlang.slack.com/archives/C8NEU7N9L/p...
# gradle
x
api()
is the equivalent
s
that doesn’t work though.
I think I need
java-library
as a plugin???
s
do you have a kotlin plugin applied? if not, try adding
kotlin-dsl
to your plugins
s
yeah I have everything working. As soon as I change
compile
to
implementation
everything starts to fail, because
implementation
doesn’t resolve transitively.
therefore I either need to add
implementation
declarations to everything or
api
just to the common modules.
but
api
doesn’t resolve unless I add
java-library
as I just discovered.
but I am not using a java-library.
this is just a multi-module project.
s
Which is erroring; Intellij, Gradle or both?
s
sorry I should be clear.
java-library
resolved my issue.
o
java-library
is what you want for that
technically your other module is a library for the others
s
yeah would just declaring the implementations in each module result in faster gradle builds?
our current module layout is really serialized. I don’t think gradle will be able to build anything in parallel
o
I don't know. I've never had an issue with it being super slow
s
ok thanks for the help.
j
@serebit You shouldn't need to apply the
kotlin-dsl
plugin. The
kotlin-dls
plugin is for developing Gradle plugins using the
kotlin-dsl
.
s
I specified that I was using the kotlin dsl.