TwoStone / gradle-eclipse-compiler-plugin

9 stars 9 forks source link

Suppress '-h' option which is not supported by eclipse jdt compiler #12

Open 38leinaD opened 4 years ago

38leinaD commented 4 years ago

should fix #11 ; just unsure if we can safely just ignore it. For my use-case, it is fine; no native headers exist.

Until merged, can also be used/tested like this:

    buildscript {
        repositories {
                maven { url 'https://jitpack.io' }
        }
        dependencies {
            classpath group: 'com.github.38leinaD', name: 'gradle-eclipse-compiler-plugin', version: 'fix~unrecognized-option-SNAPSHOT'
        }
    }

    apply plugin: 'de.set.ecj'
Justsnoopy30 commented 4 years ago

Could you provide an example of how to use the above code with gradle kotlin? I have tried multiple things and have not been able to get it to work.

38leinaD commented 4 years ago

sure @Justsnoopy30

buildscript {
    repositories {
        maven(url = "https://jitpack.io")
    }

    dependencies {
        classpath("com.github.38leinaD:gradle-eclipse-compiler-plugin:fix~unrecognized-option-SNAPSHOT")
    }
}

apply(plugin = "de.set.ecj")