-
Notifications
You must be signed in to change notification settings - Fork 112
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
SourceSet excludes impacts JAR packaging #39
Comments
There are definitely valid usecases for defining exclusions that you don't want to impact the rest of the build (for example, on https://github.com/spring-projects/spring-xd we only want licenses on our .java files, but not on the resources/ files. Yet we obviously want them to be seen / included during the build) |
Continuing discussion here as it seems to be the most sensible place. I also understand that replicating the functionality provided by source sets may be a real pain for you :( .. |
@ericbottard If you can open an issue, I'll include |
@ericbottard Fixed: https://github.com/hierynomus/license-gradle-plugin#includeexclude-files-from-license-absence-reporting-and-license-application Let me know whether this works, then I'll release a new version. |
If I add the following to my
build.gradle
script:the plugin correctly skips checking the header on any files in the
src/main/resources
source folder. However, it appears to also have the side effect of excluding those artifacts from the packaged JAR. My guess is that it is updating the globalsourceSets
for the build script. This should probably be changed to have a separateexcludes
configuration property like the corresponding Maven plugin:Of course, if I could figure out why it fails the check on the license in a properties file, this would be a lesser issue (though still something I believe is worth correcting).
The text was updated successfully, but these errors were encountered: