<?xml version="1.0"?>
<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>
  <parent>
    <groupId>org.openstreetmap.josm.plugins</groupId>
    <artifactId>plugin-root</artifactId>
    <version>1.0-SNAPSHOT</version>
  </parent>
  <artifactId>MicrosoftStreetside</artifactId>
  <url>${plugin.link}</url>
  <developers>
    <developer>
      <name>Microsoft</name>
    </developer>
  </developers>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <plugin.src.dir>src</plugin.src.dir>
    <plugin.main.version>19044</plugin.main.version>
    <plugin.author>Microsoft</plugin.author>
    <plugin.class>org.openstreetmap.josm.plugins.streetside.StreetsidePlugin</plugin.class>
    <plugin.description>Allows the user to work with pictures hosted at Microsoft Streetside</plugin.description>
    <plugin.icon>images/streetside-logo.svg</plugin.icon>
    <plugin.link>https://josm.openstreetmap.de/browser/osm/applications/editors/josm/plugins/MicrosoftStreetside</plugin.link>
    <plugin.canloadatruntime>true</plugin.canloadatruntime>
    <java.lang.version>21</java.lang.version>
    <plugin.requires>apache-commons;javafx</plugin.requires>
    <javafx.version>21</javafx.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.openstreetmap.josm.plugins</groupId>
      <artifactId>apache-commons</artifactId>
      <version>1.0-SNAPSHOT</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.openstreetmap.josm.plugins</groupId>
      <artifactId>javafx</artifactId>
      <version>1.0-SNAPSHOT</version>
      <scope>provided</scope>
    </dependency>
    <!-- Provided by runtime -->
    <dependency>
      <groupId>org.openjfx</groupId>
      <artifactId>javafx-swing</artifactId>
      <version>${javafx.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.openjfx</groupId>
      <artifactId>javafx-controls</artifactId>
      <version>${javafx.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.openjfx</groupId>
      <artifactId>javafx-base</artifactId>
      <version>${javafx.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.openjfx</groupId>
      <artifactId>javafx-graphics</artifactId>
      <version>${javafx.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.pdfsam</groupId>
      <artifactId>javafx-monocle</artifactId>
      <version>${javafx.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestEntries>
              <Plugin-Minimum-Java-Version>${java.lang.version}</Plugin-Minimum-Java-Version>
              <Plugin-Link>${plugin.link}</Plugin-Link>
              <Plugin-Icon>${plugin.icon}</Plugin-Icon>
              <Plugin-Requires>${plugin.requires}</Plugin-Requires>
              <Plugin-Canloadatruntime>${plugin.canloadatruntime}</Plugin-Canloadatruntime>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
