Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Applying Maven plugin to gradle project
Dear community,
I have one up & running project under Eclipse using Gradle. However, I have noticed that compiled jars do not end up into my maven repository. So I have been looking for one solution and found that page https://dev.liferay.com/develop/reference/-/knowledge_base/7-1/maven-plugin-builder-gradle-plugin
It says that I should refer to another plugin which I did
<cite>buildscript {<br> dependencies {<br> classpath
group: "com.liferay", name:
"com.liferay.gradle.plugins.workspace", version:
"1.10.9"<br> classpath group:
"net.saliman", name:
"gradle-properties-plugin", version:
"1.4.6"<br> classpath group:
"com.liferay", name:
"com.liferay.gradle.plugins.maven.plugin.builder",
version: "1.2.0"<br> }</cite>
<cite> repositories {<br> maven {<br> url
"https://repository-cdn.liferay.com/nexus/content/groups/public"<br>
}<br> }<br> }</cite>
<cite>apply plugin:
"com.liferay.maven.plugin.builder"<br> apply plugin:
"net.saliman.properties"<br> apply plugin: "com.liferay.workspace"</cite>
Then, I refreshed my Liferay workspace but it doesn't compile anymore.
FAILURE: Build failed with an exception.
* Where:<br> Settings file
'/home/ecoquelin/workspaces/demolr71/plugins/settings.gradle' line: 18
* What went wrong:<br> A problem occurred evaluating settings
'plugins'.<br> > Failed to apply plugin [id
'com.liferay.maven.plugin.builder']<br> >
org.gradle.initialization.DefaultSettings_Decorated cannot be cast
to org.gradle.api.Project
* Try:<br> Run with --stacktrace option to get the stack
trace. Run with --info or --debug option to get more log output.
Is the documentation up to date ? Do I miss something (very probably) ?
Thank you in advance for your feedbacks
Powered by Liferay™