Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up licensing #211

Merged
merged 10 commits into from
Mar 4, 2022
5 changes: 5 additions & 0 deletions engine-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<description>A wrapper around the test engine. This wrapper makes it possible to run the engine in a
testcontainer.</description>

<properties>
<!--suppress UnresolvedMavenProperty -->
<license.header>${maven.multiModuleProjectDirectory}/licenses/ZEEBE-COPYING-HEADER.txt</license.header>
</properties>

<dependencies>
<dependency>
<groupId>io.camunda</groupId>
Expand Down
5 changes: 5 additions & 0 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<description>Test engine for running process tests. This a minimized version of the real Zeebe engine and
should be used for testing purposes only.</description>

<properties>
<!--suppress UnresolvedMavenProperty -->
<license.header>${maven.multiModuleProjectDirectory}/licenses/ZEEBE-COPYING-HEADER.txt</license.header>
</properties>

<dependencies>
<dependency>
<groupId>io.camunda</groupId>
Expand Down
5 changes: 5 additions & 0 deletions extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@

<description>Annotation and extension for running process tests in an embedded test engine.</description>

<properties>
<!--suppress UnresolvedMavenProperty -->
<license.header>${maven.multiModuleProjectDirectory}/licenses/ZEEBE-COPYING-HEADER.txt</license.header>
</properties>

<dependencies>
<dependency>
<groupId>io.camunda</groupId>
Expand Down
5 changes: 5 additions & 0 deletions licenses/ZEEBE-COPYING-HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
one or more contributor license agreements. See the NOTICE file distributed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ What is the NOTICE file? Is this generated by Maven and shipped in the JAR or should this live in the repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. It seems like something I'd have to add to the repo. I'm not quite sure what this is supposed to contain though. The one in Zeebe says:

Camunda
Copyright 2017-2019 Camunda Services GmbH

Which seems a bit outdated 😅

with this work for additional information regarding copyright ownership.
Licensed under the Zeebe Community License 1.1. You may not use this file
except in compliance with the Zeebe Community License 1.1.
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@
<nexus.snapshot.repository>https://app.camunda.com/nexus/content/repositories/zeebe-io-snapshots</nexus.snapshot.repository>
<nexus.snapshot.repository.id>camunda-nexus</nexus.snapshot.repository.id>

<license.header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</license.header>

<plugin.version.flatten>1.2.7</plugin.version.flatten>
<plugin.version.fmt>2.9.1</plugin.version.fmt>
<plugin.version.googlejavaformat>1.12.0</plugin.version.googlejavaformat>
<plugin.version.jacoco>0.8.7</plugin.version.jacoco>
<plugin.version.javadoc>3.3.2</plugin.version.javadoc>
<plugin.version.license>4.1</plugin.version.license>
<plugin.version.maven-enforcer>3.0.0</plugin.version.maven-enforcer>
<plugin.version.os-maven>1.7.0</plugin.version.os-maven>
<plugin.version.spotless>2.21.0</plugin.version.spotless>
Expand Down Expand Up @@ -484,6 +487,26 @@
</executions>
</plugin>

<!-- LICENSE PLUGIN -->
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${plugin.version.license}</version>
<configuration>
<header>${license.header}</header>
<properties>
<owner>camunda services GmbH</owner>
<email>info@camunda.com</email>
</properties>
<includes>
<include>**/*.java</include>
</includes>
<mapping>
<java>SLASHSTAR_STYLE</java>
</mapping>
</configuration>
</plugin>

</plugins>
<extensions>
<extension>
Expand Down