我试图建立与遵循this例如gradle这个基本elasticsearch插件。我意识到在回购协议的build.gradle文件是不够的(出于某种原因),所以这是我目前的build.gradle
文件
plugins {
id 'java'
}
group 'test'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:6.5.4"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
apply plugin: 'elasticsearch.esplugin'
esplugin {
name 'script-expert-scoring'
description 'An example script engine to use low level Lucene internals for expert scoring'
classname 'org.elasticsearch.example.expertscript.ExpertScriptPlugin'
licenseFile rootProject.file('licenses/APACHE-LICENSE-2.0.txt')
noticeFile rootProject.file('NOTICE.txt')
}
unitTest.enabled = false
我添加了类路径依赖自己,因为我意识到我可能需要它。但现在我得到一个错误说
找不到参数方法的类路径()[org.elasticsearch.gradle:构建工具:6.5.4]
我缺少的东西,或者这是完全错误的?