@@ -23,7 +23,6 @@ buildscript {
23
23
plugins {
24
24
id " java"
25
25
id " checkstyle"
26
- id " co.riiid.gradle" version " 0.4.2"
27
26
}
28
27
29
28
apply plugin : ' java'
@@ -44,7 +43,7 @@ licenseFile = rootProject.file('LICENSE.txt')
44
43
noticeFile = rootProject. file(' NOTICE.txt' )
45
44
46
45
// POM validation can be enabled
47
- validateNebulaPom . enabled = false
46
+ validateElasticPom . enabled = false
48
47
49
48
// No unit tests in this plugin
50
49
test. enabled = false
69
68
}
70
69
71
70
configurations {
71
+ runtime
72
72
releaseJars {
73
73
extendsFrom runtime
74
74
exclude group : " org.elasticsearch"
@@ -78,11 +78,11 @@ configurations {
78
78
}
79
79
80
80
dependencies {
81
- compile " org.elasticsearch:elasticsearch:${ versions.elasticsearch} "
82
- compile " io.prometheus:simpleclient:${ versions.prometheus} "
83
- compile " io.prometheus:simpleclient_common:${ versions.prometheus} "
84
- compile " org.apache.logging.log4j:log4j-api:${ versions.log4j} "
85
- testCompile (group : ' junit' , name : ' junit' , version : " ${ versions.junit} " ) {
81
+ api " org.elasticsearch:elasticsearch:${ versions.elasticsearch} "
82
+ api " io.prometheus:simpleclient:${ versions.prometheus} "
83
+ api " io.prometheus:simpleclient_common:${ versions.prometheus} "
84
+ api " org.apache.logging.log4j:log4j-api:${ versions.log4j} "
85
+ testImplementation (group : ' junit' , name : ' junit' , version : " ${ versions.junit} " ) {
86
86
exclude group :' org.hamcrest' // also included in ES test framework
87
87
}
88
88
releaseJars " ${ project.group} :${ project.name} :${ project.version} "
@@ -100,12 +100,6 @@ esplugin {
100
100
classname pluginClassname
101
101
}
102
102
103
- restResources {
104
- restApi {
105
- includeCore ' *'
106
- }
107
- }
108
-
109
103
testClusters. all {
110
104
numberOfNodes = 2
111
105
@@ -126,43 +120,3 @@ checkstyle {
126
120
configFile = new File (rootDir, " checkstyle.xml" )
127
121
toolVersion = " 8.2"
128
122
}
129
-
130
- def getGitCommitHash () {
131
- def gitFolderPath = " $projectDir /.git/"
132
- def gitFolder = new File (gitFolderPath + " HEAD" );
133
- if (! gitFolder. exists()) {
134
- return null
135
- }
136
-
137
- def head = gitFolder. text. split(" :" )
138
- def isCommit = (head. length == 1 )
139
-
140
- if (isCommit) {
141
- return head[0 ]. trim()
142
- }
143
-
144
- def refHead = new File (gitFolderPath + head[1 ]. trim())
145
- return refHead. text. trim()
146
- }
147
-
148
- github {
149
- owner = github_owner
150
- repo = github_repo
151
- token = github_token
152
- tagName = version
153
- targetCommitish = getGitCommitHash()
154
- name = version
155
- assets = [
156
- " build/distributions/${ project.name} -${ version} .zip"
157
- ]
158
- }
159
-
160
- task release () {
161
- if (version. endsWith(" -SNAPSHOT" )) {
162
- doLast {
163
- println (" SNAPSHOT: Nothing to release !" )
164
- }
165
- } else {
166
- dependsOn([" githubRelease" ])
167
- }
168
- }
0 commit comments