Skip to content

Instantly share code, notes, and snippets.

@fb64
Created November 11, 2018 20:31
Show Gist options
  • Save fb64/5e80e4065bf49c81c229675c0e9fa274 to your computer and use it in GitHub Desktop.
Save fb64/5e80e4065bf49c81c229675c0e9fa274 to your computer and use it in GitHub Desktop.
gragle build configuration for creating new elastic plugin
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:6.4.3"
}
}
apply plugin : 'idea'
apply plugin : 'elasticsearch.esplugin'
ext{
project.licenseFile = project.rootProject.file("LICENSE.txt")
project.noticeFile = project.rootProject.file("NOTICE.txt")
}
esplugin {
name 'Test new Plugin'
description 'Test for new plugin creation'
classname 'test.elastic.plugin.MyPlugin'
licenseFile rootProject.file('file.txt')
noticeFile rootProject.file('file.txt')
extendedPlugins = ['x-pack-security']
}
dependencies {
compileOnly "org.elasticsearch.plugin:x-pack-core:6.4.3"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment