Skip to content

Commit

Permalink
DAT-16050 Remove warnings from liquibase-parent-pom (#71)
Browse files Browse the repository at this point in the history
* chore(pom.xml): update liquibase-parent-pom version from 0.3.0-SNAPSHOT to 0.2.6-SNAPSHOT for compatibility reasons
feat(pom.xml): add proguard rules to keep classes from software.amazon and io.netty packages to prevent obfuscation errors

* chore(pom.xml): update jackson version to 2.15.2 for jackson-databind dependency
chore(pom.xml): remove unused commons-io dependency
chore(pom.xml): remove unused slf4j dependencies
chore(pom.xml): remove unused jackson-dataformat-yaml dependency
chore(pom.xml): remove optimize flag from maven-compiler-plugin configuration
chore(pom.xml): add systemPropertyVariables configuration to maven-surefire-plugin for spock-reports output directory
chore(pom.xml): add redirectTestOutputToFile and reportFormat configuration to maven-failsafe-plugin

* chore(pom.xml): reformat indentation and spacing for better readability

* chore(pom.xml): add proguard rules to keep specific classes from being obfuscated

The changes in this commit add ProGuard rules to the pom.xml file. These rules specify that certain classes should be kept from being obfuscated during the build process. The classes that are being kept include those from the following packages: io.netty, org.reactivestreams, com.google, com.fasterxml.jackson, org.apache, org.bouncycastle, and org.slf4j.

The reason for these changes is to ensure that the specified classes are not obfuscated, as they may be required for the proper functioning of the application or for compatibility with other libraries or frameworks. By keeping these classes, we can avoid potential issues that may arise from obfuscating them.

* chore(pom.xml): update commons-io version to 2.11.0 for dependency management
feat(pom.xml): add commons-io dependency with version 2.11.0 for file input/output operations
  • Loading branch information
jandroav authored Oct 16, 2023
1 parent b2181df commit 392fbd4
Showing 1 changed file with 49 additions and 44 deletions.
93 changes: 49 additions & 44 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.liquibase</groupId>
<artifactId>liquibase-parent-pom</artifactId>
<name>Liquibase Parent POM</name>
<version>0.3.5</version>
<version>0.2.6-SNAPSHOT</version>
<description>Liquibase Parent POM for all Extensions</description>
<url>https:/liquibase/liquibase-parent-pom</url>
<packaging>pom</packaging>
Expand Down Expand Up @@ -58,9 +58,8 @@
<gmavenplus-plugin.version>3.0.0</gmavenplus-plugin.version>
<groovy-all.version>3.0.19</groovy-all.version>
<hamcrest.version>1.3</hamcrest.version>
<jackson-core.version>2.15.2</jackson-core.version>
<jackson.version>2.15.2</jackson.version>
<jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
<jackson-dataformat-yaml.version>2.15.2</jackson-dataformat-yaml.version>
<jupiter.version>5.10.0</jupiter.version>
<junit-platform.version>1.10.0</junit-platform.version>
<jsonassert.version>1.5.1</jsonassert.version>
Expand Down Expand Up @@ -114,6 +113,16 @@
</distributionManagement>

<dependencies>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
Expand All @@ -126,11 +135,6 @@
<version>${liquibase.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
Expand Down Expand Up @@ -192,23 +196,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
Expand Down Expand Up @@ -258,12 +245,6 @@
<version>${jsonassert.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson-core.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
Expand Down Expand Up @@ -345,7 +326,6 @@
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<optimize>true</optimize>
<debug>true</debug>
<encoding>${project.build.sourceEncoding}</encoding>
<compilerArgs>
Expand Down Expand Up @@ -386,19 +366,26 @@
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<reportFormat>plain</reportFormat>
<systemPropertyVariables>
<com.athaydes.spockframework.report.outputDir>${project.build.directory}/spock-reports</com.athaydes.spockframework.report.outputDir>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<reportFormat>plain</reportFormat>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
Expand Down Expand Up @@ -549,12 +536,6 @@
<version>${liquibase.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson-dataformat-yaml.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down Expand Up @@ -796,6 +777,30 @@
-keep class org.liquibase.** {
*;
}
-keep class software.amazon.** {
*;
}
-keep class io.netty.** {
*;
}
-keep class org.reactivestreams.** {
*;
}
-keep class com.google.** {
*;
}
-keep class com.fasterxml.jackson.** {
*;
}
-keep class org.apache.** {
*;
}
-keep class org.bouncycastle.** {
*;
}
-keep class org.slf4j.** {
*;
}
</option>
<option>-dontwarn software.amazon.**</option>
<option>-dontwarn org.slf4j.**</option>
Expand Down

0 comments on commit 392fbd4

Please sign in to comment.