robfletcher / gradle-compass

A SASS / Compass plugin for Gradle
Apache License 2.0
59 stars 39 forks source link

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

Open george-moberly opened 5 years ago

george-moberly commented 5 years ago

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.

BUILD FAILED in 3s

blindpirate commented 5 years ago

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?

jmini commented 5 years ago

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)