1
- import de.thetaphi.forbiddenapis.gradle.CheckForbiddenApis
2
-
3
1
/*
4
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
5
- * or more contributor license agreements. Licensed under the Elastic License
6
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
7
- * in compliance with, at your election, the Elastic License 2.0 or the Server
8
- * Side Public License, v 1.
2
+ * Licensed to Elasticsearch B.V. under one or more contributor
3
+ * license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright
5
+ * ownership. Elasticsearch B.V. licenses this file to you under
6
+ * the Apache License, Version 2.0 (the "License"); you may
7
+ * not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
9
18
*/
19
+ import de.thetaphi.forbiddenapis.gradle.CheckForbiddenApis
20
+ import org.elasticsearch.gradle.internal.precommit.LicenseHeadersTask
21
+
10
22
apply plugin : ' elasticsearch.build'
11
23
apply plugin : ' elasticsearch.publish'
12
24
@@ -16,8 +28,9 @@ sourceCompatibility = JavaVersion.VERSION_1_8
16
28
group = ' org.elasticsearch.client'
17
29
archivesBaseName = ' elasticsearch-rest-client'
18
30
19
- // REST client is published under the Elastic License
20
- ext. projectLicenses = [' Elastic License 2.0' : ext. elasticLicenseUrl]
31
+ // LLRC is licenses under Apache 2.0
32
+ ext. projectLicenses = [' The Apache Software License, Version 2.0' : ' http://www.apache.org/licenses/LICENSE-2.0' ]
33
+ ext. licenseFile = rootProject. file(' licenses/APACHE-LICENSE-2.0.txt' )
21
34
22
35
dependencies {
23
36
api " org.apache.httpcomponents:httpclient:${ versions.httpclient} "
@@ -84,3 +97,7 @@ tasks.named("thirdPartyAudit").configure {
84
97
' javax.servlet.ServletContextListener'
85
98
)
86
99
}
100
+
101
+ tasks. withType(LicenseHeadersTask . class). configureEach {
102
+ approvedLicenses = [' Apache' , ' Generated' , ' Vendored' ]
103
+ }
0 commit comments