Struggling to get elasticsearch.esplugin to work


(Thiago Souza) #1

Hello,

Is elasticsearch.esplugin already usable? I've just setup a small plugin project based on it with the following build.gradle:

buildscript {
    repositories {
        mavenCentral()
        maven {
            name 'sonatype-snapshots'
            url 'http://oss.sonatype.org/content/repositories/snapshots/'
        }
        jcenter()
    }
    dependencies {
        classpath "org.elasticsearch.gradle:build-tools:$elasticsearchVersion"
    }
}

apply plugin: 'elasticsearch.esplugin'

esplugin {
    name 'ingest-data-scrapper'
    description 'Ingest processor that integrates with data scrapper DSL'
    classname 'sh.scrap.scrapper.ingest.DataScrapperPlugin'
}

dependencies {
    compile "org.elasticsearch:elasticsearch:$elasticsearchVersion"
}

Where elasticsearchVersion is 3.0.0-SNAPSHOT. But when building I get the following error:

* What went wrong:
A problem occurred evaluating project ':scrapper-elasticsearch'.
> Cannot convert URL 'jar:file:/Users/thiago/.gradle/caches/modules-2/files-2.1/org.elasticsearch.gradle/build-tools/3.0.0-SNAPSHOT/6ed11d9ca2a4ee2405bf5fd5d587ad70bd46afa/build-tools-3.0.0-SNAPSHOT.jar!/checkstyle.xml' to a file.

What am I missing here? Or it's just that the gradle plugin is not usable yet?

Thanks!
Thiago Souza


(matteo cremolini) #2

Hi,
same problem here!!!
Any news?

bye
mt


(Nik Everett) #3

This certainly should work. This particular problem should have been fixed by:


(system) #4