File tree 3 files changed +33
-26
lines changed
3 files changed +33
-26
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ See the [CONTRIBUTING guide](./CONTRIBUTING.md#Changelog) for instructions on ho
11
11
### Infrastructure
12
12
### Documentation
13
13
### Maintenance
14
+ * Persist necessary license and developer information in maven pom ([ #732 ] ( https://github.com/opensearch-project/geospatial/pull/732 ) )
14
15
### Refactoring
15
16
16
17
## [ Unreleased 2.x] ( https://github.com/opensearch-project/geospatial/compare/2.19...2.x )
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ test {
116
116
include ' **/*Tests.class'
117
117
systemProperty ' tests.security.manager' , ' false'
118
118
}
119
-
120
119
publishing {
121
120
repositories {
122
121
maven {
@@ -138,24 +137,31 @@ publishing {
138
137
name = pluginName
139
138
description = pluginDescription
140
139
groupId = " org.opensearch.plugin"
141
- licenses {
142
- license {
143
- name = " The Apache License, Version 2.0"
144
- url = " http://www.apache.org/licenses/LICENSE-2.0.txt"
145
- }
146
- }
147
- developers {
148
- developer {
149
- name = " OpenSearch"
150
- url = " https://github.com/opensearch-project/geospatial"
151
- }
152
- }
140
+ }
141
+ }
142
+ all {
143
+ pom {
144
+ name = pluginName
145
+ description = pluginDescription
146
+ }
147
+ pom. withXml { XmlProvider xml ->
148
+ Node node = xml. asNode()
149
+ node. appendNode(' inceptionYear' , ' 2021' )
150
+
151
+ Node license = node. appendNode(' licenses' ). appendNode(' license' )
152
+ license. appendNode(' name' , " The Apache License, Version 2.0" )
153
+ license. appendNode(' url' , " http://www.apache.org/licenses/LICENSE-2.0.txt" )
154
+
155
+ Node developer = node. appendNode(' developers' ). appendNode(' developer' )
156
+ developer. appendNode(' name' , ' OpenSearch' )
157
+ developer. appendNode(' url' , ' https://github.com/opensearch-project/geospatial' )
153
158
}
154
159
}
155
160
}
156
161
}
157
162
158
163
164
+
159
165
configurations {
160
166
zipArchive
161
167
}
Original file line number Diff line number Diff line change @@ -70,22 +70,22 @@ publishing {
70
70
}
71
71
}
72
72
publications {
73
- pluginZip( MavenPublication ) { publication ->
73
+ all {
74
74
pom {
75
75
name = " opensearch-geospatial-client"
76
76
description = ' OpenSearch Geospatial client'
77
- licenses {
78
- license {
79
- name = " The Apache License, Version 2.0 "
80
- url = " http://www.apache.org/licenses/LICENSE-2.0.txt "
81
- }
82
- }
83
- developers {
84
- developer {
85
- name = " OpenSearch "
86
- url = " https://github.com/opensearch-project/geospatial "
87
- }
88
- }
77
+ }
78
+ pom . withXml { XmlProvider xml ->
79
+ Node node = xml . asNode()
80
+ node . appendNode( ' inceptionYear ' , ' 2021 ' )
81
+
82
+ Node license = node . appendNode( ' licenses ' ) . appendNode( ' license ' )
83
+ license . appendNode( ' name ' , " The Apache License, Version 2.0 " )
84
+ license . appendNode( ' url ' , " http://www.apache.org/licenses/LICENSE-2.0.txt " )
85
+
86
+ Node developer = node . appendNode( ' developers ' ) . appendNode( ' developer ' )
87
+ developer . appendNode( ' name ' , ' OpenSearch ' )
88
+ developer . appendNode( ' url ' , ' https://github.com/opensearch-project/geospatial ' )
89
89
}
90
90
}
91
91
}
You can’t perform that action at this time.
0 commit comments