Skip to content

Commit

Permalink
Working on deployment of nodep artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkowalcz committed Feb 16, 2021
1 parent 5d708d4 commit 83c1a92
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 41 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,12 @@ workflows:
requires:
- build-and-test
executor: new-java-maven-executor
mvn-release-perform-command: >-
mvn --batch-mode release:perform -DskipTests -s .circleci/.maven.xml
- circleci-maven-release-orb/run-maven-release:
requires:
- build-and-test
executor: new-java-maven-executor
mvn-release-perform-command: >-
mvn --batch-mode release:perform -DskipTests -Pnodep -s .circleci/.maven.xml
88 changes: 47 additions & 41 deletions loki-log4j2-appender/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -62,12 +63,6 @@
<version>3.15.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.13.3</version>
<scope>test</scope>
</dependency>

<!-- Testcontainers -->
<dependency>
Expand Down Expand Up @@ -102,6 +97,51 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>nodep</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>org.apache.logging.log4j</exclude>
</excludes>
</artifactSet>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>org.agrona</pattern>
<shadedPattern>pl.tkowalcz.tjahzi.org.agrona</shadedPattern>
</relocation>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>pl.tkowalcz.tjahzi.io.netty</shadedPattern>
</relocation>
</relocations>

<!-- <createDependencyReducedPom>true</createDependencyReducedPom>-->
<!-- <shadedArtifactAttached>true</shadedArtifactAttached>-->
<!-- <shadedClassifierName>nodep</shadedClassifierName>-->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand All @@ -120,40 +160,6 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>org.apache.logging.log4j</exclude>
</excludes>
</artifactSet>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>org.agrona</pattern>
<shadedPattern>pl.tkowalcz.tjahzi.org.agrona</shadedPattern>
</relocation>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>pl.tkowalcz.tjahzi.io.netty</shadedPattern>
</relocation>
</relocations>

<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>nodep</shadedClassifierName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 83c1a92

Please sign in to comment.