<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/maven-v4_0_0.xsd">
  <parent>
    <artifactId>sonar-scanner-java-library-parent</artifactId>
    <groupId>org.sonarsource.scanner.lib</groupId>
    <version>4.2.1.1698</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>sonar-scanner-java-library-shaded</artifactId>
  <name>SonarScanner Java Library :: Shaded</name>
  <description>Fat jar of sonar-scanner-java-library with every third-party runtime dependency - direct (gson, commons-compress,
    commons-lang3, fastcsv, ayza, BouncyCastle) and transitive (commons-io, commons-codec, sude,
    error_prone_annotations) - relocated under org.sonarsource.scanner.lib.internal, so that the scanner never
    conflicts with a different version of any of them already present on the classpath. This is meant for embedding
    tools that don't isolate their plugins in separate classloaders (e.g. Gradle / AGP) - Maven and the CLI don't
    need it, and keep depending on the plain sonar-scanner-java-library artifact instead.
    This module has no main sources of its own: it only relocates sonar-scanner-java-library and its dependencies.</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.6.2</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createSourcesJar>true</createSourcesJar>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <artifactSet>
                <excludes>
                  <exclude>org.slf4j:slf4j-api</exclude>
                  <exclude>com.google.code.findbugs:jsr305</exclude>
                </excludes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>com.google</pattern>
                  <shadedPattern>org.sonarsource.scanner.lib.internal.shaded.com.google</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons</pattern>
                  <shadedPattern>org.sonarsource.scanner.lib.internal.shaded.org.apache.commons</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>de.siegmar.fastcsv</pattern>
                  <shadedPattern>org.sonarsource.scanner.lib.internal.shaded.de.siegmar.fastcsv</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>nl.altindag</pattern>
                  <shadedPattern>org.sonarsource.scanner.lib.internal.shaded.nl.altindag</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.bouncycastle</pattern>
                  <shadedPattern>org.sonarsource.scanner.lib.internal.shaded.org.bouncycastle</shadedPattern>
                  <excludes>
                    <exclude>org.bouncycastle.emulate.oracle</exclude>
                    <exclude>org.bouncycastle.pkcs12.ignore_useless_passwd</exclude>
                    <exclude>org.bouncycastle.pkcs12.max_it_count</exclude>
                    <exclude>org.bouncycastle.pkcs12.allow_sun_secret_keys</exclude>
                    <exclude>org.bouncycastle.pkcs12.default</exclude>
                    <exclude>org.bouncycastle.x509.crl_cache_ttl</exclude>
                    <exclude>org.bouncycastle.x509.enableCRLDP</exclude>
                    <exclude>org.bouncycastle.x509.max_policy_nodes</exclude>
                    <exclude>org.bouncycastle.x509.max_cert_path_build_nodes</exclude>
                    <exclude>org.bouncycastle.x509.sgp22_name_constraints</exclude>
                    <exclude>org.bouncycastle.x509.allow_lenient_rfc822_name</exclude>
                    <exclude>org.bouncycastle.x509.allow_empty_issuer_cert</exclude>
                    <exclude>org.bouncycastle.x509.allow_absent_equiv_NULL</exclude>
                    <exclude>org.bouncycastle.x509.allow_ca_without_crl_sign</exclude>
                    <exclude>org.bouncycastle.x509.allow_non-der_tbscert</exclude>
                    <exclude>org.bouncycastle.x509.ignore_repeated_extensions</exclude>
                    <exclude>org.bouncycastle.pkcs1.strict_digestinfo</exclude>
                    <exclude>org.bouncycastle.pkcs1.strict</exclude>
                    <exclude>org.bouncycastle.pkcs1.not_strict</exclude>
                    <exclude>org.bouncycastle.pkcs8.v1_info_only</exclude>
                    <exclude>org.bouncycastle.jsse.hostname_check_cn_fallback</exclude>
                    <exclude>org.bouncycastle.drbg.effective_256bits_entropy</exclude>
                    <exclude>org.bouncycastle.drbg.entropysource</exclude>
                    <exclude>org.bouncycastle.drbg.entropy_thread</exclude>
                    <exclude>org.bouncycastle.drbg.gather_pause_secs</exclude>
                    <exclude>org.bouncycastle.asn1.allow_non_der_time</exclude>
                    <exclude>org.bouncycastle.asn1.max_cons_depth</exclude>
                    <exclude>org.bouncycastle.asn1.max_limit</exclude>
                    <exclude>org.bouncycastle.asn1.allow_unsafe_integer</exclude>
                    <exclude>org.bouncycastle.asn1.allow_wrong_oid_enc</exclude>
                    <exclude>org.bouncycastle.dh.max_size</exclude>
                    <exclude>org.bouncycastle.dh.allow_unsafe_p_value</exclude>
                    <exclude>org.bouncycastle.dsa.max_size</exclude>
                    <exclude>org.bouncycastle.dsa.FIPS186-2for1024bits</exclude>
                    <exclude>org.bouncycastle.bcfks.max_it_count</exclude>
                    <exclude>org.bouncycastle.bcfks.max_scrypt_memory</exclude>
                    <exclude>org.bouncycastle.pbe.max_iteration_count</exclude>
                    <exclude>org.bouncycastle.pbe.max_scrypt_memory</exclude>
                    <exclude>org.bouncycastle.pkmac.max_iteration_count</exclude>
                    <exclude>org.bouncycastle.gcm.allow_short_tags</exclude>
                    <exclude>org.bouncycastle.bks.enable_v1</exclude>
                    <exclude>org.bouncycastle.bks.max_it_count</exclude>
                    <exclude>org.bouncycastle.ec.disable</exclude>
                    <exclude>org.bouncycastle.ec.disable_f2m</exclude>
                    <exclude>org.bouncycastle.ec.disable_mqv</exclude>
                    <exclude>org.bouncycastle.ec.enable_pc</exclude>
                    <exclude>org.bouncycastle.ec.fp_certainty</exclude>
                    <exclude>org.bouncycastle.ec.fp_max_size</exclude>
                    <exclude>org.bouncycastle.ec.max_f2m_field_size</exclude>
                    <exclude>org.bouncycastle.fpe.disable</exclude>
                    <exclude>org.bouncycastle.fpe.disable_ff1</exclude>
                    <exclude>org.bouncycastle.rsa.max_size</exclude>
                    <exclude>org.bouncycastle.rsa.allow_unsafe_mod</exclude>
                    <exclude>org.bouncycastle.rsa.no_lenstra_check</exclude>
                    <exclude>org.bouncycastle.rsa.max_mr_tests</exclude>
                    <exclude>org.bouncycastle.argon2.max_memory_exp</exclude>
                    <exclude>org.bouncycastle.argon2.max_passes</exclude>
                    <exclude>org.bouncycastle.argon2.max_parallelism</exclude>
                    <exclude>org.bouncycastle.pemreader.lax</exclude>
                    <exclude>org.bouncycastle.constraints.allow_override</exclude>
                  </excludes>
                </relocation>
              </relocations>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>module-info.class</exclude>
                    <exclude>META-INF/versions/**</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>org.bouncycastle:bcprov-jdk18on</artifact>
                  <excludes>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                  </excludes>
                </filter>
              </filters>
              <transformers>
                <transformer />
                <transformer />
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <includeDependencySources>true</includeDependencySources>
          <dependencySourceIncludes>
            <dependencySourceInclude>${project.groupId}:sonar-scanner-java-library</dependencySourceInclude>
          </dependencySourceIncludes>
          <doclint>none</doclint>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>expose-dependency-jar-paths</id>
            <phase>generate-test-resources</phase>
            <goals>
              <goal>properties</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>3.5.2</version>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
            <configuration>
              <systemPropertyVariables>
                <bcprovJarPath>${org.bouncycastle:bcprov-jdk18on:jar}</bcprovJarPath>
                <shadedJarPath>${project.build.directory}/${project.build.finalName}.jar</shadedJarPath>
              </systemPropertyVariables>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.36</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>jsr305</artifactId>
      <version>3.0.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>6.0.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-params</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-engine</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <version>3.27.7</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>byte-buddy</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm</artifactId>
      <version>9.10.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
