Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Major design and functionality flaws #5

@Vampire

Description

@Vampire

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions