legacy-knowledge-base
公開されました Sep. 10, 2025

com.liferay.portal.dao.orm.custom.sql に必要な build.gradle の変更を削除するとコンパイルエラーになる。 7.1 以降で

written-by

Eugene Shin

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

learn-legacy-article-disclaimer-text

問題

  • com.liferay.portal.dao.orm.custom.sql に必要な build.gradle の変更に対応する際、バージョン番号を削除すると、コンパイルエラー が返されます。

Environment

  • Liferay DXP 7.1
  • Liferay DXP 7.2
  • Liferay DXP 7.3
  • Liferay DXP 7.4

解決策

  • CustomSQLUtilクラスはDXP7.1よりLiferayから削除されました。 以前このクラスを使用していて、DXP 7.1以上にアップグレードした場合、変更を反映させるために依存関係を更新する必要があります。
  • CustomSQL サービスは、DXP 7.1 から Liferay によってモジュール化されました。 そのため、新しい依存関係は、apiとimplに分割されました。
  • 正しい依存関係の例としては、次のようなものがあります。
    provided group: "com.liferay", name: "com.liferay.portal.dao.orm.custom.sql.api", version: "1.0.1"

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base