<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">
    <modelVersion>4.0.0</modelVersion>
    <groupId>io.gitlab.vincent-lambert</groupId>
    <artifactId>miscellaneousWidgets</artifactId>
    <version>1.2</version>
    <packaging>jar</packaging>

    <name>JavaFX widgets</name>
    <description>Useful widgets for JavaFX-based projects</description>
    <url>${project.groupId}:${project.artifactId}</url>

    <licenses>
      <license>
        <name>GNU General Public License, version 3 (GPLv3)</name>
        <url>https://www.gnu.org/licenses/gpl-3.0.html</url>
      </license>
    </licenses>

    <developers>
      <developer>
        <name>Vincent LAMBERT</name>
        <email>vincent.lambert29@gmail.com</email>
        <!-- <organization>None</organization> -->
        <organizationUrl>https://vincent-lambert.gitlab.io/website/</organizationUrl>
      </developer>
    </developers>

    <scm>
      <url>https://gitlab.com/Vincent-LAMBERT/miscellaneousWidgets</url>
      <connection>scm:git:git:https://gitlab.com/Vincent-LAMBERT/miscellaneousWidgets.git</connection>
      <developerConnection>scm:git:ssh:https://gitlab.com/Vincent-LAMBERT/miscellaneousWidgets.git</developerConnection>
    </scm>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>

    <distributionManagement>
      <snapshotRepository>
        <id>ossrh</id>
        <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
      </snapshotRepository>
      <repository>
        <id>ossrh</id>
        <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
      </repository>
    </distributionManagement>

    <dependencies>
      <dependency>
        <groupId>org.aerofx</groupId>
        <artifactId>aerofx</artifactId>
        <version>0.2</version>
      </dependency>
      <dependency>
        <groupId>org.jfxcore</groupId>
        <artifactId>javafx-fxml</artifactId>
        <version>15-ea+1</version>
      </dependency>
      <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-controls</artifactId>
        <version>13</version>
      </dependency>
    </dependencies>
    <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.7</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
          </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>15</source>
                    <target>15</target>
                </configuration>
            </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <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-source-plugin</artifactId>
            <version>2.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.9.1</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-install-plugin</artifactId>
              <version>2.5.2</version>
          </plugin>
          
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                    <release>11</release>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.openjfx</groupId>
                <artifactId>javafx-maven-plugin</artifactId>
                <version>0.0.6</version>
                <executions>
                    <execution>
                        <!-- Default configuration for running -->
                        <!-- Usage: mvn clean javafx:run -->
                        <id>default-cli</id>
                        <configuration>
                            <mainClass>miscellaneousWidgets.App</mainClass>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>


    <resources>
        <resource>
            <directory>src/ressources</directory>
            <includes>
              <include>fxml/*.fxml</include>
              <include>images/*.png</include>
              <include>css/*.css</include>
            </includes>
        </resource>
    </resources>
    </build>
</project>
