-
Notifications
You must be signed in to change notification settings - Fork 26
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
Derive4J annotations scoped "provided" produce compiler warnings in Gradle project #42
Comments
This is strange - that should be a compile time only dependency for myself, not anyone consuming the library - I list them as provided, I suspect derive4j's annotations may not just be source retention, and thus being picked up and warned out. I'll see if I can address that. |
It looks like |
yeah, derive4j use I agree that, if this feature is not needed, the warning is not cool... not sure how to avoid it (apart from the mentioned solution of declaring a compile-only dependency on derive4j-annotations). |
Yeah, a distinction between transitive compile dependencies and transitive runtime dependencies would be nice. In its absence, though, maybe the simplest thing is just to make it a runtime dependency. |
When I include HalBuilder 5 in a Gradle project, I get warnings like these on compilation:
My workaround was to include
derive4j-annotation
as a compile-only dependency (loosely equivalent to Mavenprovided
scope):(The down side of this is I'm hypothetically passing the problem along to anybody that depends on my code, but this particular project is an application rather than a library so that's not likely. In a library, I'd probably have to just make it an explicit
compile
dependency.)I don't know what happens in straight Maven, but it seems to me
provided
might be the wrong scope for the Derive4J libraries, since it doesn't seem likely that it's going to be literally provided by a JDK or container.The text was updated successfully, but these errors were encountered: