-
Notifications
You must be signed in to change notification settings - Fork 99
Test jyjeanne/dita-ot-gradle
#645
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
Conversation
Use Cursor’s `claude-4-sonnet` model to replace deprecated constructs from Gradle 7 and earlier versions with their Gradle 8 and 9 equivalents to quiet deprecation warnings. Co-Authored-By: Claude <[email protected]> Signed-off-by: Roger Sheen <[email protected]>
Per https://github.com/jyjeanne/dita-ot-gradle#quick-migration-tldr Signed-off-by: Roger Sheen <[email protected]>
|
@infotexture i made some improvment on latest version 2.30 and solve problem on cache configuration , can you try with this new version of the plugin : https://github.com/jyjeanne/dita-ot-gradle/releases/tag/v2.3.0 ? |
Per #645 (comment) Signed-off-by: Roger Sheen <[email protected]>
|
@jyjeanne Thanks, tried again with the new v2.3.0 as you suggested. Build proceeds and announces success in the (new) transformation report summaries, so the explicit directory config in 567d0a3 works, and v2.3.0 seems to solve the AntClassLoader error from 2.2.0: However, the properties in the For example:
|
jyjeanne/dita-ot-gradle 2.2.0jyjeanne/dita-ot-gradle
|
@infotexture Hi, I finally find a solution : Root CauseThe // ❌ BROKEN in v2.3.0 - Properties are silently ignored
properties {
property name: 'args.copycss', value: 'yes'
property name: 'args.css', value: 'dita-ot-doc.css'
}Solution: Use
|
|
I will update plugin documentation about this bug and add workaround . I also add new test case to prevent this bug. I wanted to thank you for your assistance in identifying and resolving the recent issue. Your insights were valuable in addressing the bug efficiently Best regards |
|
@jyjeanne Thanks for your persistence here, it works with the I'll switch the status of this PR to Ready for review, run a few more tests, and discuss with the team before merging, but looks like this could work well for our purposes. 🙏 |
Use ditaProperties MapProperty directly for compatibility with jyjeanne/dita-ot-gradle v2.3.0 Per #645 (comment) Signed-off-by: Roger Sheen <[email protected]>
|
hi, i also make a bug fix into version 2.3.1 to allow user to use two groovy syntax :
OR
Best regards |
|
@jyjeanne This now works fine when run from the docs repository, but we hadn't merged it yet because we hadn't tested it with the DITA-OT distribution build file. When we do that, we get errors about implicit dependencies between the docs Both of those run fine independently, but the error suggests they depend on one another — but they don't. Upon further inspection, this is likely caused by the fact that This seems like a bug in the plug-in rather than something we should work around. While the toolkit directory does contain resource files used by the transformation, the start map and filter files are actually the only known inputs. |
|
@infotexture i analyze the root cause and the Problem is on : @InputDirectory on ditaOtDir. In This annotation causes Gradle to:
Why It Manifests in Distribution BuildsIn a typical DITA-OT distribution structure: When multiple tasks are configured:
Gradle's perspective:
Why This is IncorrectThe DITA-OT installation directory is a tool, not a data input:
You don't declare JAVA_HOME as a task input when compiling Java code - the same principle applies here. SolutionChange
|
|
@infotexture i made a new release of the plugin with the bug fix : https://github.com/jyjeanne/dita-ot-gradle/releases/tag/v2.3.2 i hope it will help you . |
|
@infotexture Finaly i check docs with new plugin release v2.3.2 containing bug fix and it solved this issue. Can you also check and confirm this result ? Best regards |
This reverts commit 114bb0b. Signed-off-by: Roger Sheen <[email protected]>
de990cd to
3e0fce2
Compare
|
@jyjeanne 🙏 Thanks, the changes in v2.3.2 allow the distribution build in the core repo to complete successfully. |
Signed-off-by: Roger Sheen <[email protected]>
Description
Test
jyjeanne/dita-ot-gradleper dita-ot/discussions/4722 & jyjeanne/dita-ot-gradle#quick-migration-tldr.Motivation and Context
Confirm whether the new jyjeanne/dita-ot-gradle Gradle plugin works in our environment to take advantage of recent Gradle features that are not supported by the original eerohele/dita-ot-gradle plugin.
How Has This Been Tested?
Result
❌ Build fails: