Skip to content

Commit

Permalink
feat(engine): publish scala-shaded artifact
Browse files Browse the repository at this point in the history
related to CAM-12136, #149
  • Loading branch information
tasso94 committed Oct 22, 2020
1 parent 517aa81 commit 4ecea84
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<scala.version>2.13.0</scala.version>
<scala.binary.version>2.13.0</scala.binary.version>
<version.log4j>2.13.3</version.log4j>
<plugin.version.shade>3.2.4</plugin.version.shade>
<encoding>UTF-8</encoding>
<project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
<project.build.resourceEncoding>${encoding}</project.build.resourceEncoding>
Expand Down Expand Up @@ -235,6 +236,40 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${plugin.version.shade}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>scala-shaded</shadedClassifierName>
<createDependencyReducedPom>true</createDependencyReducedPom>
<promoteTransitiveDependencies>false</promoteTransitiveDependencies>
<createSourcesJar>true</createSourcesJar>
<keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
<artifactSet>
<excludes>
<exclude>org.slf4j:slf4j-api</exclude>
</excludes>
</artifactSet>

<relocations>
<relocation>
<pattern>scala</pattern>
<shadedPattern>camundajar.impl.scala</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>

</plugins>

</build>
Expand Down

0 comments on commit 4ecea84

Please sign in to comment.