Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javadocAggregate does not respect task enabled property #487

Closed
remkop opened this issue Feb 22, 2022 · 1 comment
Closed

javadocAggregate does not respect task enabled property #487

remkop opened this issue Feb 22, 2022 · 1 comment

Comments

@remkop
Copy link

remkop commented Feb 22, 2022

In my multi-module project, I have the following entry in build.gradle of one of the modules to prevent the javadoc for that module from being generated:

tasks.withType(Javadoc).all { enabled = false }

However, I still see errors like the below, so somehow that module (picocli-examples) is still included:

C:\Users\remko\IdeaProjects\picocli3\picocli-examples\src\main\java\picocli\examples\jsr380\beanvalidation\User.java:12: error: package javax.validation is not visible
import javax.validation.ValidatorFactory;
            ^
  (package javax.validation is declared in module java.validation, which is not in the module graph)

Env:

gradlew --version

------------------------------------------------------------
Gradle 7.3
------------------------------------------------------------

Build time:   2021-11-09 20:40:36 UTC
Revision:     96754b8c44399658178a768ac764d727c2addb37

Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          11 (Oracle Corporation 11+28)
OS:           Windows 10 10.0 amd64
@larsgrefer
Copy link
Member

good catch

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

No branches or pull requests

2 participants