bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
193 stars 92 forks source link

No such property: COMPILE_ONLY_CONFIGURATION_NAME #188

Closed Cristianjss closed 6 years ago

Cristianjss commented 6 years ago

I´m getting the following error, adding the version

classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.14.6"

Failed to apply plugin [id 'asset-pipeline']

No such property: COMPILE_ONLY_CONFIGURATION_NAME for class: org.gradle.api.plugins.JavaPlugin

davydotcom commented 6 years ago

running and older gradle version?

On Nov 16, 2017, at 9:09 PM, Cristianjss notifications@github.com wrote:

I´m getting the following error, adding the version

classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.14.6"

Failed to apply plugin [id 'asset-pipeline']

No such property: COMPILE_ONLY_CONFIGURATION_NAME for class: org.gradle.api.plugins.JavaPlugin

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bertramdev/asset-pipeline/issues/188, or mute the thread https://github.com/notifications/unsubscribe-auth/AABaEobY2pZoqpz0V1XY1r0fXrV02q8kks5s3OrKgaJpZM4Qhbmw.

francoiskha commented 6 years ago

Hi, I have the same issue creating a brand new grails 3.3.2 project.

Step to reproduce

  1. create a une app via the grails create-app command.
  2. in build.gradle change gradle.plugin.com.energizedwork.webdriver-binaries:webdriver-binaries-gradle-plugin version from 1.1 to 1.2 due to another problem
  3. run ./grailsw help

Actual behavior

Got error below instead of help

| Resolving Dependencies. Please wait...
Cannot resolve reloading agent JAR: Could not resolve all dependencies for configuration ':agent'.

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/fran/Code/grails-example/build.gradle' line: 24

* What went wrong:
A problem occurred evaluating root project 'grails-example'.
> Failed to apply plugin [id 'asset-pipeline']
   > No such property: COMPILE_ONLY_CONFIGURATION_NAME for class: org.gradle.api.plugins.JavaPlugin

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 8.84 secs
| Error Error initializing classpath: No such property: COMPILE_ONLY_CONFIGURATION_NAME for class: org.gradle.api.plugins.JavaPlugin (Use --stacktrace to see the full trace)

I had the same message using the Intellij create Domain Class functionality.

environment

Cristianjss commented 6 years ago

You have to update your Gradle version to the lastest one, that works for me.

francoiskha commented 6 years ago

Well thank you, I tried but it dit no work for me. Here is what I did :

I still have the same error, maybe I missed something ?

davydotcom commented 6 years ago

Theres a bug around this with grails wrapper. It doesnt default to using the cradle wrapper annoyingly. It uses whatever sdkman is set at by default

On Dec 14, 2017, at 1:07 PM, François Kha notifications@github.com wrote:

Well thank you, I tried but it dit no work for me. Here is what I did :

editing gradle.properties , setting gradleWrapperVersion=4.4 running ./gradlew wrapper to update running ./grailsw help I still have the same error, maybe I missed something ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bertramdev/asset-pipeline/issues/188#issuecomment-351790842, or mute the thread https://github.com/notifications/unsubscribe-auth/AABaEkGyEkyFHpPuzKiU_mJTds9QQqzsks5tAWPtgaJpZM4Qhbmw.

francoiskha commented 6 years ago

OK, disabling sdkman works for me. Annoying bug indeed.

Thank you very much.

davydotcom commented 6 years ago

going to close this since its a grails wrapper issue