https://kotlinlang.org logo
Title
d

dumptruckman

07/11/2017, 5:50 PM
Can I use the shadow plugin to include a dependency in my jar but not make the dependence transitive?
d

danny

07/11/2017, 6:07 PM
dumptruckman: You have to filter the dependencies out from publishing yourself
Other option is to use a different configuration for those dependencies, so they’re not published in the first place
d

dumptruckman

07/11/2017, 6:09 PM
but if i change them to compileOnly or shadow they are not added to the jar
Trying the way in that link...
Could not find method publishing() for arguments [build_4bu51rjd9mlnmdg2asldyxwf$_run_closure13@2ea37383] on root project 'libkt' of type org.gradle.api.Project.
is that part of some plugin?
ah, maven-publish