this may be another mor-gradle-than kotlin question,
i am trying to do a mavenPublication and shadow in some dependecies with shadowJar (kotlin-stdlib, kotlin-reflection and coroutines but thats deside the point)
when i use shadowjar it wipes all dependnecy inforfmation, so those other compile configurations are not listed in the pom
does anybody know how do avoid that ?
i
ilya.gorbunov
11/05/2018, 2:27 PM
Do you want to publish shadowJar in addition to normal jar?
ilya.gorbunov
11/05/2018, 2:56 PM
In that case you can put the plugin to the script classpath but without applying it (
apply false
parameter) and then create a
ShadowJar
task manually.
n
Nikky
11/05/2018, 3:11 PM
the issue is more like.. i want to shadow only some dependencies, but the rest of the dependecies still need to be added to the pom