<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>io.sarl.lang</groupId>
  <artifactId>batchcompiler</artifactId>
  <version>0.15.0</version>
  <name>Batch compiler library</name>
  <description>Library that provides a batch compiler for SARL</description>
  <packaging>jar</packaging>
  <url>http://www.sarl.io</url>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <manifest.file>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifest.file>
  </properties>
  <dependencies>
    <dependency>
      <groupId>io.sarl.lang</groupId>
      <artifactId>compiler</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>
    <dependency>
      <groupId>io.sarl.baseutils</groupId>
      <artifactId>tests.api</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.sarl.lang</groupId>
      <artifactId>compiler.tests</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.arakhne.afc.core</groupId>
      <artifactId>vmutils</artifactId>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>org.eclipse.xtext</groupId>
          <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.sarl.bom</groupId>
        <artifactId>sarl-lang-bom</artifactId>
        <version>${project.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>io.sarl.bom</groupId>
        <artifactId>sarl-compiler-bom</artifactId>
        <version>${project.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>io.sarl.bom</groupId>
        <artifactId>sarl-tests-bom</artifactId>
        <version>${project.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav-jackrabbit</artifactId>
        <version>3.5.3</version>
      </extension>
    </extensions>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.14.0</version>
        <configuration>
          <source>${sarl-dsl.min.jdk.version}</source>
          <target>${sarl-dsl.min.jdk.version}</target>
          <testSource>${sarl-dsl.min.jdk.version}</testSource>
          <testTarget>${sarl-dsl.min.jdk.version}</testTarget>
          <encoding>${project.build.sourceEncoding}</encoding>
          <showDeprecation>false</showDeprecation>
          <showWarnings>false</showWarnings>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.3.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>verify</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>biz.aQute.bnd</groupId>
        <artifactId>bnd-maven-plugin</artifactId>
        <version>7.1.0</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <id>bundle-manifest</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>bnd-process</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <bnd>
						Bundle-SymbolicName: ${project.groupId}.${project.artifactId};singleton:=true
						Automatic-Module-Name: ${project.groupId}.${project.artifactId}
						Bundle-Vendor: ${sarl.vendor}
						Export-Package: io.sarl.lang.compiler.batch.*
						# Version of Google Guice are forced because BND plugin does not compute the correct version for the
						# imported packages from Guice
						Import-Package: \
							com.google.inject.*;version=!,\
							*
					</bnd>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.4.2</version>
        <configuration>
          <archive>
            <manifestFile>${manifest.file}</manifestFile>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>properties-maven-plugin</artifactId>
        <version>1.2.1</version>
        <executions>
          <execution>
            <id>read-properties</id>
            <phase>initialize</phase>
            <goals>
              <goal>read-project-properties</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <urls>
            <url>classpath:/sarl-lang.properties</url>
          </urls>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>io.sarl.bom</groupId>
            <artifactId>sarl-properties</artifactId>
            <version>${project.version}</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>3.8.1</version>
        <executions>
          <execution>
            <goals>
              <goal>properties</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>3.5.3</version>
        <configuration>
          <argLine>-javaagent:${org.mockito:mockito-core:jar}</argLine>
          <consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter">
            <disable>false</disable>
            <encoding>UTF-8</encoding>
            <usePhrasedFileName>false</usePhrasedFileName>
          </consoleOutputReporter>
          <statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter">
            <disable>false</disable>
            <usePhrasedFileName>false</usePhrasedFileName>
            <usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
            <usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
          </statelessTestsetInfoReporter>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release-tasks</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>3.2.8</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.11.2</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <phase>process-classes</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <docencoding>${project.build.sourceEncoding}</docencoding>
              <encoding>${project.build.sourceEncoding}</encoding>
              <charset>${project.build.sourceEncoding}</charset>
              <show>protected</show>
              <detectJavaApiLink>true</detectJavaApiLink>
              <docfilessubdirs>true</docfilessubdirs>
              <excludePackageNames />
              <nohelp>true</nohelp>
              <notree>true</notree>
              <bottom>&lt;small&gt;Copyright &amp;copy; ${sarl.inception.year}-${sarl.last.yearyear} ${sarl.copyrighters}.</bottom>
              <tags>
                <tag>
                  <name>mavengroupid</name>
                  <placement>pt</placement>
                  <head>Maven Group Id:</head>
                </tag>
                <tag>
                  <name>mavenartifactid</name>
                  <placement>pt</placement>
                  <head>Maven Artifact Id:</head>
                </tag>
                <tag>
                  <name>ExcludeFromApidoc</name>
                  <placement>X</placement>
                </tag>
              </tags>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <distributionManagement>
    <repository>
      <id>io.sarl.maven.upload</id>
      <url>${MAVENSARLIO_URL}</url>
      <name>SARL Maven Repository</name>
    </repository>
    <snapshotRepository>
      <id>io.sarl.maven.upload</id>
      <url>${MAVENSARLIO_URL}</url>
      <name>SARL Maven Repository</name>
    </snapshotRepository>
  </distributionManagement>
  <scm>
    <connection>scm:git:git@github.com:sarl/sarl.git</connection>
    <developerConnection>scm:git:git@github.com:sarl/sarl.git</developerConnection>
    <url>git@github.com:sarl/sarl.git</url>
  </scm>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>SARL Authors and Contributors</name>
      <url>https://www.sarl.io</url>
    </developer>
  </developers>
</project>
