<?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>parent</artifactId>
    <groupId>org.sonarsource.parent</groupId>
    <version>86.0.0.3040</version>
    <relativePath>../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.sonarsource.java</groupId>
  <artifactId>jdt-package</artifactId>
  <name>Eclipse JDT Core Package</name>
  <version>1.8.0.1483</version>
  <description>Packaging of Eclipse JDT Core for SonarQube Java Analyzer</description>
  <ciManagement>
    <system>GitHub Actions</system>
    <url>https://github.com/SonarSource/sonar-java-jdt/actions</url>
  </ciManagement>
  <developers>
    <developer>
      <id>sonarsource-team</id>
      <name>SonarSource Team</name>
      <organization>SonarSource</organization>
      <organizationUrl>https://www.sonarsource.com/</organizationUrl>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Eclipse Public License - v 2.0</name>
      <url>https://www.eclipse.org/legal/epl-2.0/</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git@github.com:SonarSource/sonar-java-jdt.git</connection>
    <developerConnection>scm:git:git@github.com:SonarSource/sonar-java-jdt.git</developerConnection>
    <url>https://github.com/SonarSource/sonar-java-jdt</url>
  </scm>
  <organization>
    <name>SonarSource</name>
    <url>http://www.sonarsource.com</url>
  </organization>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createSourcesJar>true</createSourcesJar>
              <shadeSourcesContent>true</shadeSourcesContent>
              <filters>
                <filter>
                  <artifact>org.eclipse.jdt:*</artifact>
                  <excludes>
                    <exclude>org/eclipse/jdt/internal/compiler/problem/ProblemHandler.class</exclude>
                    <exclude>org/eclipse/jdt/internal/compiler/problem/ProblemHandler.java</exclude>
                    <exclude>org/eclipse/jdt/internal/compiler/problem/ProblemReporter.class</exclude>
                    <exclude>org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/**</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-resources</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.mycila</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <configuration>
          <licenseSets>
            <licenseSet>
              <excludes>
                <exclude>src/main/java/**</exclude>
                <exclude>src/test/resources/**</exclude>
              </excludes>
            </licenseSet>
          </licenseSets>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.eclipse.jdt</groupId>
        <artifactId>org.eclipse.jdt.core</artifactId>
        <version>3.44.0</version>
        <exclusions>
          <exclusion>
            <artifactId>org.eclipse.core.filesystem</artifactId>
            <groupId>org.eclipse.platform</groupId>
          </exclusion>
          <exclusion>
            <artifactId>org.eclipse.core.expressions</artifactId>
            <groupId>org.eclipse.platform</groupId>
          </exclusion>
          <exclusion>
            <artifactId>org.eclipse.equinox.registry</artifactId>
            <groupId>org.eclipse.platform</groupId>
          </exclusion>
          <exclusion>
            <artifactId>org.eclipse.equinox.app</artifactId>
            <groupId>org.eclipse.platform</groupId>
          </exclusion>
          <exclusion>
            <artifactId>jna</artifactId>
            <groupId>net.java.dev.jna</groupId>
          </exclusion>
          <exclusion>
            <artifactId>org.eclipse.core.commands</artifactId>
            <groupId>org.eclipse.platform</groupId>
          </exclusion>
        </exclusions>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <properties>
    <jdk.min.version>17</jdk.min.version>
    <sonar.organization>sonarsource</sonar.organization>
    <sonar.exclusions>src/main/java/org/eclipse/jdt/**</sonar.exclusions>
    <artifactsToPublish>${project.groupId}:${project.artifactId}:jar</artifactsToPublish>
    <maven.source.skip>true</maven.source.skip>
    <gitRepositoryName>sonar-java-jdt</gitRepositoryName>
  </properties>
</project>
