Skip to content

Commit

Permalink
Merge pull request #5 from liquibase/feature/shaded-jar
Browse files Browse the repository at this point in the history
package shaded jar
  • Loading branch information
mcred authored Jan 13, 2023
2 parents e23e02c + 6edb091 commit 2bd6d6d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build-test:
uses: liquibase/build-logic/.github/workflows/pro[email protected]
uses: liquibase/build-logic/.github/workflows/os[email protected]
secrets: inherit

integration-test:
Expand Down
32 changes: 31 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.liquibase.ext</groupId>
<artifactId>liquibase-git-resource</artifactId>
<version>0.1.1-SNAPSHOT</version>
<version>0.1.1</version>
<packaging>jar</packaging>

<name>Liquibase Git Resource</name>
Expand Down Expand Up @@ -230,6 +230,36 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.2</version>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<!-- filter out signature files from signed dependencies, else repackaging fails with security ex -->
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand Down

0 comments on commit 2bd6d6d

Please sign in to comment.