Incorrect liferay-plugins dependency

228 Views Asked by At

In https://github.com/liferay/liferay-plugins/blob/6.2.x/build-plugins.gradle#L9 following dependency is defined:

dependencies {
    classpath group: "com.liferay.portal", name: "portal-service", version: "7.0.0-SNAPSHOT"
}

How can a 6.2.x version have a dependency on 7.0.0 version? Is it a bug? When I peek to the history of the file, the dependency has always been there. I am not able to build a LF plugin and I suspect this could be the cause.

It is possible to be not related at all, but I am still curious why such dependency is there.

1

There are 1 best solutions below

0
On BEST ANSWER

The 6.2 branch is mainly used for development, and those Gradle scripts are not designed to run on Liferay 6.2. Furthermore, they've been removed in the master branch, replaced by a series of Gradle plugins written in Java. Everything is still under active development, but anyway you're more than welcome to try these new features and give us feedback!

For Liferay 6.2, just keep using the Ant scripts and everything should be fine!