-
Notifications
You must be signed in to change notification settings - Fork 9
ShadowJar plugin expects certain Zip files #14
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
Comments
Hey there, this looks like a quite special issue. Yes, the plugin does add an additional source directory for the generated source files to the project.
I do not know the ShadowJar plugin nor how it works and what this plugin expects. I don't think it would be smart to include a special handling of this setup into the xsd2java plugin. Do you have an alternative solution to this problem? |
Greetings! Thank you for responding to my issue.
It would help a lot already, what exactly the plugin adds to the Layout and also to have a control over it. Because, it does not seem to correlate with the xsd2java {
// JAXB XJC: JAXB Binding Compiler
// https://github.com/qaware/xsd2java-gradle-plugin
schemas {
javadoc {
packageName = 'com.manticore.tools.xmldoclet.xjc'
schemaDirPath = file('src/main/resources/xjc').toPath()
}
}
extension = true
arguments ['-verbose']
outputDir = layout.buildDirectory.dir("generated/sources/java/main").get().asFile
}
I am not sure about this because, it expects The current workaround is to fake those |
Greetings.
Unfortunately I am facing a challenge when using your Gradle Plugin together with the ShadowJar plugin.
Please see https://github.com/manticore-projects/xml-doclet and especially https://github.com/manticore-projects/xml-doclet/blob/3bf909031b13540f0cfea26a61395ea56d5d006a/build.gradle#L221
ShadowJar
will expect 2 zip files to be created:Without those 2 files, it will throw an error message:
I do believe, that your Plugin somehow adds those 2 files to the SourceSet or Layout. But I did not see any way to exclude or suppress it.
The only extremely ugly mitigation I found was to create those 2 Zip files:
This works but completely messes up the task dependencies and also it pollutes the ShadowJar.
Can you please shed some light on why those two files are added and how to mitigate/solve this challenge better?
Thank you so much already!
The text was updated successfully, but these errors were encountered: