@@ -3,39 +3,8 @@ import org.opensearch.gradle.test.RestIntegTestTask
3
3
import java.util.regex.Matcher
4
4
import java.util.regex.Pattern
5
5
6
- apply plugin : ' java'
7
- apply plugin : ' idea'
8
- apply plugin : ' opensearch.opensearchplugin'
9
- apply plugin : ' opensearch.yaml-rest-test'
10
-
11
- def pluginName = pluginName
12
- def pluginDescription = pluginDescription
13
- // def projectPath = 'org.opensearch'
14
- // def pathToPlugin = 'path.to.plugin'
15
- def pluginClassName = pluginClassname
16
-
17
- opensearchplugin {
18
- name pluginName
19
- description pluginDescription
20
- // classname "${projectPath}.${pathToPlugin}.${pluginClassName}"
21
- classname pluginClassName
22
- licenseFile rootProject. file(' LICENSE.txt' )
23
- noticeFile rootProject. file(' NOTICE.txt' )
24
- }
25
-
26
- // thirdparty audit needs can be enabled
27
- thirdPartyAudit. enabled = false
28
-
29
- // This requires an additional Jar not published as part of build-tools
30
- loggerUsageCheck. enabled = false
31
-
32
- // No need to validate pom, as we do not upload to maven/sonatype
33
- validateNebulaPom. enabled = false
34
-
35
6
buildscript {
36
-
37
7
ext {
38
-
39
8
// Four {digit(s)} concatenated with a "." followed by -rc{digit(s)}
40
9
// Examples: 1.0.0.1-rc2, 2.10.4.0-rc5
41
10
// Group (3) refers to the last .{digit{(s)} pattern (this is what we want to remove for OpS version)
@@ -49,7 +18,6 @@ buildscript {
49
18
String opensearch_version
50
19
String plugin_version = version
51
20
52
-
53
21
Matcher rc_matcher = RC_pattern . matcher(plugin_version)
54
22
Matcher other_matcher = OTHER_pattern . matcher(plugin_version)
55
23
@@ -83,6 +51,36 @@ buildscript {
83
51
}
84
52
}
85
53
54
+ apply plugin : ' java'
55
+ apply plugin : ' idea'
56
+ apply plugin : ' opensearch.opensearchplugin'
57
+ apply plugin : ' opensearch.yaml-rest-test'
58
+ // apply plugin: 'checkstyle'
59
+
60
+ def pluginName = pluginName
61
+ def pluginDescription = pluginDescription
62
+ // def projectPath = 'org.opensearch'
63
+ // def pathToPlugin = 'path.to.plugin'
64
+ def pluginClassName = pluginClassname
65
+
66
+ opensearchplugin {
67
+ name pluginName
68
+ description pluginDescription
69
+ // classname "${projectPath}.${pathToPlugin}.${pluginClassName}"
70
+ classname pluginClassName
71
+ licenseFile rootProject. file(' LICENSE.txt' )
72
+ noticeFile rootProject. file(' NOTICE.txt' )
73
+ }
74
+
75
+ // thirdparty audit needs can be enabled
76
+ thirdPartyAudit. enabled = false
77
+
78
+ // This requires an additional Jar not published as part of build-tools
79
+ loggerUsageCheck. enabled = false
80
+
81
+ // No need to validate pom, as we do not upload to maven/sonatype
82
+ validateNebulaPom. enabled = false
83
+
86
84
repositories {
87
85
mavenLocal()
88
86
maven { url " https://aws.oss.sonatype.org/content/repositories/releases" }
0 commit comments