nebula-plugins / gradle-contacts-plugin

Structure to define the owners of a project, then contributing this back to other plugins
Apache License 2.0
14 stars 8 forks source link

NoClassDefFoundError: com.google.common.collect.Maps #4

Closed gabrielruiu closed 9 years ago

gabrielruiu commented 9 years ago

Greetings,

Was trying out the contacts plugin, did a minimal configuration in build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies { classpath 'com.netflix.nebula:gradle-contacts-plugin:1.9.+' }
    dependencies { classpath 'com.netflix.nebula:nebula-publishing-plugin:1.9.+' }
}

apply plugin: 'java'
apply plugin: 'contacts'
contacts {
    'gabriel.ruiu@mail.com' {
        id 'gabrielruiu'
        github 'gabrielruiu'
        twitter '@GabrielRuiu'
        name 'Gabriel Ruiu'
        roles 'owner', 'developer'
    }
}

But when I run ./gradlew build --stacktrace I get the error:

NoClassDefFoundError: com.google.common.collect.Maps
bmuschko commented 9 years ago

Using a 1.9.+ of the Nebula plugins indicates that you should be using Gradle 1.9. Is that the case? If you are using a newer version of Gradle, please pick the compatible plugin version. You can find more information here.

gabrielruiu commented 9 years ago

Solved by using version 2.0+

    dependencies { classpath 'com.netflix.nebula:gradle-contacts-plugin:2.0.+' }
    dependencies { classpath 'com.netflix.nebula:nebula-publishing-plugin:2.0.+' }