compileOnly is not working in the build.gradle
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- We are using com.liferay.gradle.plugins.workspace version: "13.0.8" in the 2025.Q1 bundle and we noticed that when we use compileInclude in the build.gradle then only it is working. It is not working with compileOnly. Is this expected?
Resolution
- There is an incompatibility with the Gradle workspace plugin version you're currently using.
- The 2025.Q1 environment does not support Jakarta packages, and the plugin version 13.0.8 is introducing elements designed for the 2025.Q3 release. These Jakarta-related changes are not compatible with 2025.Q1 and will prevent the deployments from working correctly.
- To resolve this, you should revert your Gradle workspace plugin to version 13.0.5. This will ensure compatibility with your current 2025.Q1 environment.
Did this article resolve your issue ?