You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
From a quick look at your code I'd say your plugin has at least three major flaws:
You check the targetCompatibility of the convention object, but that is just the default for the JavaCompileand similar tasks. Instead you should check the targetCompatibility of the respective tasks which can be different from the convention object. Also that way you could easily have a project with a Java 9 compiled source set and a Java 8 compiled source set, e. g. to build a multi-release JAR.
You should also support setting the boot path for the JavaDoc type tasks.
You should not apply the Java base plugin, but either react to it being applied with something like project.plugins.withId(), or as you shouldn't use the convention anyway, even not that, but just react to tasks with the respective types and conditions, as you can also apply them without the Java base plugin.