<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.kohlschutter</groupId>
        <artifactId>kohlschutter-parent</artifactId>
        <version>1.6.4</version>
    </parent>

    <groupId>com.kohlschutter.jdk.compiler</groupId>
    <artifactId>standalone</artifactId>
    <version>1.1.2</version>
    <packaging>pom</packaging>

    <properties>
        <jdk.compiler.standalone.version>1.1.2</jdk.compiler.standalone.version>
    </properties>

    <licenses>
        <license>
            <name>GPL-2.0-with-classpath-exception</name>
            <url>https://www.gnu.org/software/classpath/license.html</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <scm>
        <url>https://github.com/kohlschutter/jdk.compiler.standalone</url>
        <connection>
            scm:git:git@github.com:kohlschutter/jdk.compiler.standalone.git</connection>
        <developerConnection>
            scm:git:git@github.com:kohlschutter/jdk.compiler.standalone.git</developerConnection>
    </scm>
    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <site>
            <id>github.com/kohlschutter/jdk.compiler.standalone</id>
            <url>gitsite:git@github.com/kohlschutter/jdk.compiler.standalone.git</url>
        </site>
    </distributionManagement>
    <issueManagement>
        <system>GitHub</system>
        <url>https://github.com/kohlschutter/jdk.compiler.standalone/issues</url>
    </issueManagement>
    <dependencies>
        <dependency>
            <groupId>com.kohlschutter</groupId>
            <artifactId>compiler-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>native</id>
            <activation>
                <property>
                    <name>native</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.graalvm.buildtools</groupId>
                        <artifactId>native-maven-plugin</artifactId>
                        <extensions>true</extensions>
                    </plugin>
                </plugins>

                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.graalvm.buildtools</groupId>
                            <artifactId>native-maven-plugin</artifactId>
                            <version>0.9.27</version>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
        <profile>
            <id>custom-javac</id>
            <activation>
                <property>
                    <name>custom-javac</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <configuration>
                            <fork>true</fork>
                            <executable>${custom-javac}</executable>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.kohlschutter.jdk</groupId>
                <artifactId>standalone-util</artifactId>
                <version>${jdk.compiler.standalone.version}</version>
            </dependency>
            <dependency>
                <groupId>com.kohlschutter.jdk.compiler</groupId>
                <artifactId>standalone-jdk11</artifactId>
                <version>${jdk.compiler.standalone.version}</version>
            </dependency>
            <dependency>
                <groupId>com.kohlschutter.jdk.compiler</groupId>
                <artifactId>standalone-jdk21</artifactId>
                <version>${jdk.compiler.standalone.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <modules>
        <module>standalone-util</module>
        <module>standalone-jdk11</module>
        <module>standalone-jdk11-test</module>
        <module>standalone-jdk21</module>
        <module>standalone-jdk21-test</module>
    </modules>
</project>
