shipkit icon indicating copy to clipboard operation
shipkit copied to clipboard

javadoc and java plugins are applied in the wrong order

Open NielsDoucet opened this issue 6 years ago • 1 comments

If you use the suggested way to configure the shipkit java and javadoc plugins, they get applied in the wrong order.

plugins {
    id 'java'
    id 'org.shipkit.java' version '2.2.2'
    id 'org.shipkit.javadoc' version '2.2.2'
}
> Configure project :
  Building version '1.0.4' (value loaded from 'version.properties' file).
Not found any 'javadocJar' task. You probably applied 'org.shipkit.javadoc' plugin before 'org.shipkit.java'. Please apply 'org.shipkit.java' plugin first!

FAILURE: Build failed with an exception.

To fix this, you have to manually correct the ordering by setting apply: false and then make sure to apply them in the 'correct' order.

Is there a way for these plugins to interact more cleanly?

NielsDoucet avatar Jun 17 '19 06:06 NielsDoucet

Could you provide more context or full example? At least Gradle and Java version, please?

mstachniuk avatar Aug 23 '19 20:08 mstachniuk