gradle-compass icon indicating copy to clipboard operation
gradle-compass copied to clipboard

can't apply plugin using Gradle 4.8, 4.9 (or 4.10)

Open george-moberly opened this issue 7 years ago • 2 comments

Gradle 4.7 works, starting with 4.8, 4.9 and 4.10:

here is what I see, I am using 2.0.6 of the plugin:

$ ./gradlew clean Download https://jcenter.bintray.com/com/github/robfletcher/compass-gradle-plugin/2.0.6/compass-gradle-plugin-2.0.6.pom Download https://jcenter.bintray.com/com/github/robfletcher/compass-gradle-plugin/2.0.6/compass-gradle-plugin-2.0.6.jar

FAILURE: Build failed with an exception.

  • Where: Build file '...repos/ratpack/ratpack-manual/ratpack-manual.gradle' line: 41

  • What went wrong: A problem occurred evaluating project ':ratpack-manual'.

Failed to apply plugin [id 'com.github.robfletcher.compass'] Could not create task of type 'CompassFork'.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s

george-moberly avatar Sep 05 '18 17:09 george-moberly

Seems like this is due to an internal API usage of com.github.johnrengelman.processes. The good news is this issue has already been fixed by https://github.com/johnrengelman/gradle-processes/blob/929467012b6c5ed54ecbce4803944096c2858ee6/src/main/java/com/github/jengelman/gradle/plugins/processes/internal/DefaultJavaForkAction.java#L17

Is there any possibility to release a new compass plugin to support this update, i.e. com.github.johnrengelman.processes 0.5.0?

blindpirate avatar Sep 07 '18 00:09 blindpirate

One way to force usage of 0.5.0 is:

buildscript {
  repositories {
    jcenter()
    maven { url "http://dl.bintray.com/robfletcher/gradle-plugins" }
    maven { url "https://plugins.gradle.org/m2" }
  }
  dependencies {
    classpath("com.github.robfletcher:compass-gradle-plugin:2.0.6") {
        exclude group: 'com.github.jengelman.gradle.plugins', module: 'gradle-processes'
    }
    classpath "com.github.johnrengelman.processes:com.github.johnrengelman.processes.gradle.plugin:0.5.0"
  }
}

(be aware the maven coordinates changed)

jmini avatar Jun 13 '19 07:06 jmini