eclipse / buildship

The Eclipse Plug-ins for Gradle project.
530 stars 169 forks source link

The liferay workspace project can work well in command line and intellij with gradle 7.3.3. But it can not evaluated by buildship #1260

Closed simonjhy closed 1 year ago

simonjhy commented 1 year ago

We have a liferay gradle project applied our worksapce gadle pluin, It can work well in command line and Intellij IDEA with gradle 7.3.3. But it can not be evaluated by buildship.

Expected Behavior

it should be correctly evaluated without error.

Current Behavior

it report an error : Description Resource Path Location Type The supplied phased action failed with an exception. Resolving dependency configuration 'compileOnly' is not allowed as it is defined as 'canBeResolved=false'. Instead, a resolvable ('canBeResolved=true') dependency configuration that extends 'compileOnly' should be resolved. build.gradle

Context

This issue cause the project can not be correctly evaluated and can not run any task.

Steps to Reproduce

import the sample project into Eclipse JEE, when executed gradle refresh, the the gradle will report an error in Markers View.

Your Environment

gradleWrapper 7.3.3

sample.zip provide a build scan https://scans.gradle.c gradle-refresh-error.log om/get-started

simonjhy commented 1 year ago

@donat Can you help to take a look about this issue?