Skip to content

Commit

Permalink
chore(ci): check dependency licenses (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Oct 26, 2022
1 parent fbedbd8 commit 319c2ef
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,23 @@ jobs:
name: "Check dependency rules"
command: mvn enforcer:enforce -Drules=banDuplicatePomDependencyVersions,dependencyConvergence

check-licenses:
parameters:
maven-image:
type: string
default: *default-maven-image
docker:
- image: << parameters.maven-image >>
steps:
- checkout
- restore_cache:
name: Restoring Maven Cache
keys:
- maven-cache_v3-<< parameters.maven-image >>-
- run:
name: "Check dependency licenses"
command: mvn license:check -Dlicense.dependencies.enforce=true

check-generate-site:
parameters:
maven-image:
Expand Down Expand Up @@ -232,6 +249,7 @@ workflows:
jobs:
- check-dependencies
- check-generate-site
- check-licenses
- tests-java:
name: jdk-8
- tests-java:
Expand All @@ -256,6 +274,7 @@ workflows:
requires:
- check-dependencies
- check-generate-site
- check-licenses
- jdk-8
- jdk-11
- jdk-17
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
### Bug Fixes
1. [#459](https://github.com/influxdata/influxdb-client-java/pull/459): Fix support for InfluxDB 1.8.x in InfluxQLQueryAPI

### Dependencies
### CI
1. [#460](https://github.com/influxdata/influxdb-client-java/pull/460): Check dependency licenses

### Dependencies
1. [#446](https://github.com/influxdata/influxdb-client-java/pull/446): Remove `gson-fire`

Update dependencies:
Expand Down
44 changes: 43 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,48 @@
<properties>
<organizationName>${project.organization.name}</organizationName>
</properties>
<dependencyPolicies>
<dependencyPolicy>
<type>LICENSE_NAME</type>
<rule>APPROVE</rule>
<value>The MIT License (MIT)</value>
</dependencyPolicy>
<dependencyPolicy>
<type>LICENSE_NAME</type>
<rule>APPROVE</rule>
<value>The MIT License</value>
</dependencyPolicy>
<dependencyPolicy>
<type>LICENSE_NAME</type>
<rule>APPROVE</rule>
<value>Apache-2.0</value>
</dependencyPolicy>
<dependencyPolicy>
<type>LICENSE_URL</type>
<rule>APPROVE</rule>
<value>http://www.apache.org/licenses/LICENSE-2.0.txt</value>
</dependencyPolicy>
<dependencyPolicy>
<type>LICENSE_URL</type>
<rule>APPROVE</rule>
<value>https://www.apache.org/licenses/LICENSE-2.0.txt</value>
</dependencyPolicy>
<dependencyPolicy>
<type>LICENSE_URL</type>
<rule>APPROVE</rule>
<value>https://www.apache.org/licenses/LICENSE-2.0</value>
</dependencyPolicy>
<dependencyPolicy>
<type>LICENSE_URL</type>
<rule>APPROVE</rule>
<value>http://opensource.org/licenses/BSD-3-Clause</value>
</dependencyPolicy>
<dependencyPolicy>
<type>LICENSE_URL</type>
<rule>APPROVE</rule>
<value>https://www.eclipse.org/legal/epl-v20.html</value>
</dependencyPolicy>
</dependencyPolicies>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -375,7 +417,7 @@
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.1</version>
<version>4.2.rc2</version>
</plugin>

<plugin>
Expand Down

0 comments on commit 319c2ef

Please sign in to comment.