Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

javadoc and java plugins are applied in the wrong order #831

Open
NielsDoucet opened this issue Jun 17, 2019 · 1 comment
Open

javadoc and java plugins are applied in the wrong order #831

NielsDoucet opened this issue Jun 17, 2019 · 1 comment

Comments

@NielsDoucet
Copy link

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?

@mstachniuk
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants