kt3k / coveralls-gradle-plugin

👨‍🔧 gradle plugin for coveralls
https://plugins.gradle.org/plugin/com.github.kt3k.coveralls
MIT License
253 stars 54 forks source link

Error:Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling' #23

Closed viacheslavokolitiy closed 10 years ago

viacheslavokolitiy commented 10 years ago

Hello everyone. I'm using Android Studio 0.8.4 and want to use coveralls-gradle-plugin but I can't. Strange bug appears. There is my buildscript

apply plugin: 'cobertura'
apply plugin: 'com.github.kt3k.coveralls'

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.+'
        classpath 'net.saliman:gradle-cobertura-plugin:2.0.0'
        classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

cobertura.coverageFormats = ['html', 'xml']

allprojects {
    repositories {
        mavenCentral()
    }
}

task wrapper(type: Wrapper) {
    gradleVersion = '2.0'
}

It seems, that Android is unsupported yet ?

viacheslavokolitiy commented 10 years ago

Just switch to old plugin version, and fixed this error

kt3k commented 10 years ago

Thanks for reporting the issue!

Yeah, maybe you are right. Android plugin now requires gradle 1.10 to build, and the latest version of this plugin only works with gradle 2.0 or higher. Therefore they cannot work together and you need to use v1.0.2 of this plugin.

Anyway thanks!

davidrocket commented 8 years ago

Check your jdk version!