-
Notifications
You must be signed in to change notification settings - Fork 18
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
IllegalStateException Failed to find end of block comment #5
Comments
How do you include the generated sources in the Gradle build. Do you just add it as separate source directory or as entirely new source set? Note that these exclusions are based on the source directory, not on the root project directory. You can only use them to exclude specific packages or files with a special name. Let's consider the following example:
You could exclude Nevertheless, licenser shouldn't fail on files with this header. I will check if I can reproduce this problem and see if I can find a solution. |
I added it to the existing source set. What would you suggest to exclude all files in that directory? |
If you can, the best solution would be to generate the sources in a special package only for generated sources. That way you can just exclude the package as shown above. |
Well, the generated files are kotlin, so the package can be different from the folders. In my case the generated files just end up in the root directory of the generated source folder, so I'd need a way to exclude an entire source folder. |
@msrd0 If the folder doesn't matter for the package, couldn't you just add them into an additional "generated" directory? That way you can exclude them normally. Currently, there is no way to exclude specific source directories of a source set, you can only exclude files/directories within a source set. |
Ok thanks for the explanation. Still I'd love to see a feature to exclude certain source directories, not only subdirectories |
@msrd0 I see your point. Feel free to open a new issue for adding that feature and I will consider it as soon as I have time. :) |
There you go: #6 |
I'm trying to use this plugin together with generated sources. The header of the generated source file looks like this:
Running the
licenseFormat
task I get the following exception:The entire stack trace is attached.
Since I absolutely don't care about the header of a generated file, I tried excluding the
generated
directory:However, this didn't change anything
The text was updated successfully, but these errors were encountered: