<!--

    Copyright © 2023 LogonBox Limited (support@logonbox.com)

    Permission is hereby granted, free of charge, to any person obtaining a copy of this
    software and associated documentation files (the “Software”), to deal in the Software
    without restriction, including without limitation the rights to use, copy, modify,
    merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to the following
    conditions:

    The above copyright notice and this permission notice shall be included in all copies
    or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
    INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
    PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
    OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-->
<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>
    <groupId>com.jadaptive</groupId>
    <artifactId>nodal-agent</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>Nodal Agent</name>
    
    <properties>
        <maven.compiler.target>24</maven.compiler.target>
        <maven.compiler.source>24</maven.compiler.source>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <native.image.annotations.version>0.9.3</native.image.annotations.version>
        <dbus.version>5.1.0</dbus.version>
		<picocli.version>4.7.5</picocli.version>
        <graalvm.version>0.10.2</graalvm.version>
		<synergy.version>3.1.4-SNAPSHOT</synergy.version>
		<jline.version>3.30.4</jline.version>
		<nodal-core.version>0.9.3-SNAPSHOT</nodal-core.version>

		<build.arch>unknown</build.arch>
		<build.os>unknown</build.os>
		<build.phase>continuous</build.phase>
		<build.dev>true</build.dev>
		<build.quietProperties>${build.dev}</build.quietProperties>
		<build.mediaTypes>windows,unixInstaller,windowsArchive,unixArchive,linuxRPM,linuxDeb,macosArchive,macosFolderArchive</build.mediaTypes>
		<build.install4j.project>${project.basedir}/src/main/install4j/nodal-agent.install4j</build.install4j.project>
		<build.projectProperties>${basedir}/jadaptive.build.properties</build.projectProperties>
		<build.userProperties>${user.home}/.jadaptive.build.properties</build.userProperties>
		
		
		<install4j.phase>stable</install4j.phase>
		<install4j.mediaTypes>windows,unixInstaller,macos,macosFolder,windowsArchive,unixArchive,linuxRPM,linuxDeb,macosArchive,macosFolderArchive</install4j.mediaTypes>
		<install4j.macPkcs12File>~/.jadaptive-developer-id.p12</install4j.macPkcs12File>
		<install4j.updatesBase>https://sshtools-public.s3.eu-west-1.amazonaws.com/nodal-agent</install4j.updatesBase>
		<install4j.jaulAppId>com.jadaptive.NodalAgent</install4j.jaulAppId>
		<install4j.jaulUpdaterId>54</install4j.jaulUpdaterId>
    </properties>
    <modules>
        <module>lib</module>
        <module>tools</module>
        <module>service</module>
        <module>installer</module>
    </modules>
    <developers>
        <developer>
            <id>brett</id>
            <email>brett@logonbox.com</email>
        </developer>
    </developers>
    <organization>
        <name>JADAPTIVE</name>
        <url>https://jadaptive.com</url>
    </organization>
    <inceptionYear>2025</inceptionYear>
    <url>https://github.com/ludup/nodal-agent</url>
    <description>
        Agent for JDAPTIVE Nodal.
    </description>
    <distributionManagement>
        <repository>
            <id>libs-releases-local</id>
            <url>https://artifactory.jadaptive.com/libs-releases-local</url>
        </repository>
        <snapshotRepository>
            <id>libs-snapshots-local</id>
            <url>https://artifactory.jadaptive.com/libs-snapshots-local</url>
        </snapshotRepository>
    </distributionManagement>
    <scm>
        <url>https://github.com/ludup/nodal-agent</url>
        <connection>scm:git:https://github.com/ludup/nodal-agent.git</connection>
    </scm>
    <dependencies>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <version>5.9.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>uk.co.bithatch</groupId>
            <artifactId>native-image-annotations</artifactId>
            <version>${native.image.annotations.version}</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <dependencyManagement>
	    <dependencies>
			<dependency>
			    <groupId>com.sshtools</groupId>
			    <artifactId>jadbus-lib</artifactId>
	            <version>1.0.0-SNAPSHOT</version>
	            <exclusions>
	            	<exclusion>
	            		<groupId>com.install4j</groupId>
	            		<artifactId>install4j-runtime</artifactId>
	            	</exclusion>
	            	<!-- TODO huh ..-->
	            	<exclusion>
	            		<groupId>com.install4j</groupId>
	            		<artifactId>install4j-maven</artifactId>
	            	</exclusion>
	            </exclusions>
			</dependency>
			<dependency>
				<groupId>com.install4j</groupId>
				<artifactId>install4j-runtime</artifactId>
				<version>11.0.4</version>
           		<scope>provided</scope>
			</dependency>
	        <dependency>
	            <groupId>com.sshtools</groupId>
	            <artifactId>jaul</artifactId>
	            <version>0.9.23</version>
	            <exclusions>
	            	<exclusion>
	            		<groupId>com.install4j</groupId>
	            		<artifactId>install4j-runtime</artifactId>
	            	</exclusion>
	            </exclusions>
	        </dependency>
			<dependency>
				<groupId>com.sshtools</groupId>
				<artifactId>jadaptive-oauth-client</artifactId>
				<version>1.0.0</version>
			</dependency>
	        <dependency>
	            <groupId>info.picocli</groupId>
	            <artifactId>picocli</artifactId>
	            <version>${picocli.version}</version>
	        </dependency>
			<dependency>
				<groupId>com.sshtools</groupId>
				<artifactId>jini-config</artifactId>
				<version>0.5.6</version>
			</dependency> 
	       <dependency>
	            <groupId>com.sshtools</groupId>
	            <artifactId>slf4j-tty</artifactId>
	            <version>0.0.7</version>
	        </dependency>
	        <dependency>
	            <groupId>org.slf4j</groupId>
	            <artifactId>slf4j-api</artifactId>
	            <version>2.0.9</version> 
	        </dependency>
	        <dependency>
	            <groupId>org.slf4j</groupId>
	            <artifactId>slf4j-simple</artifactId>
	            <version>2.0.9</version> 
	        </dependency>
	        <dependency>
	            <groupId>org.slf4j</groupId>
	            <artifactId>jul-to-slf4j</artifactId>
	            <version>2.0.9</version>
	        </dependency> 
			<dependency>
				<groupId>com.github.hypfvieh</groupId>
				<artifactId>dbus-java-core</artifactId>
				<version>${dbus.version}</version>
			</dependency>
            <dependency>
                <groupId>com.github.hypfvieh</groupId>
                <artifactId>dbus-java-transport-native-unixsocket</artifactId>
				<version>${dbus.version}</version>
            </dependency>
            <dependency>
                <groupId>com.github.hypfvieh</groupId>
                <artifactId>dbus-java-transport-tcp</artifactId>
				<version>${dbus.version}</version>
            </dependency>
	        <dependency>
	            <groupId>org.eclipse.parsson</groupId>
	            <artifactId>jakarta.json</artifactId>
	            <version>1.1.6</version>
	        </dependency>
	    </dependencies>
	</dependencyManagement>
    <build>
        <plugins>
            <plugin>
                <groupId>com.sshtools</groupId>
                <artifactId>updatesxmlmerger-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>uk.co.bithatch</groupId>
                            <artifactId>native-image-annotations</artifactId>
                            <version>${native.image.annotations.version}</version>
                        </path>
                        <path>
					        <groupId>info.picocli</groupId>
					        <artifactId>picocli-codegen</artifactId>
					        <version>${picocli.version}</version>
					      </path>
                    </annotationProcessorPaths>
                    <compilerArgs>
                        <arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
                    </compilerArgs>
                </configuration>
            </plugin>
            
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>properties-maven-plugin</artifactId>
				<executions>
					<execution>
						<phase>initialize</phase>
						<goals>
							<goal>read-project-properties</goal>
						</goals>
						<configuration>
							<quiet>${build.quietProperties}</quiet>
							<files>
								<file>${build.projectProperties}</file>
								<file>${build.userProperties}</file>
							</files>
						</configuration>
					</execution>
				</executions>
			</plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.sshtools</groupId>
                    <artifactId>updatesxmlmerger-maven-plugin</artifactId>
                    <version>1.0.0</version>
                </plugin>
	            <plugin>
					<groupId>com.install4j</groupId>
					<artifactId>install4j-maven</artifactId>
					<version>11.0.4</version>
	            </plugin>
	            <plugin>
	                <groupId>org.apache.maven.plugins</groupId>
	                <artifactId>maven-deploy-plugin</artifactId>
	                <version>3.1.2</version>
	            </plugin>
	            <plugin>
	                <groupId>org.codehaus.mojo</groupId>
	                <artifactId>build-helper-maven-plugin</artifactId>
	                <version>3.5.0</version>
	            </plugin>
				<plugin>
					<artifactId>jdeb</artifactId>
					<groupId>org.vafer</groupId>
					<version>1.10</version>
				</plugin>
				<plugin>
					<artifactId>maven-resources-plugin</artifactId>
					<version>3.2.0</version>
				</plugin>
			    <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.9</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>properties-maven-plugin</artifactId>
					<version>1.2.1</version>
                </plugin>
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>0.8.10</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>3.1.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.3.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.11.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.1.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.8.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.5.3</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>3.1.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>3.5.0</version>
                    <executions>
                        <execution>
                            <id>javadoc-jar</id>
                            <phase>package</phase>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <encoding>UTF-8</encoding>
                        <detectJavaApiLink>false</detectJavaApiLink>
                        <source>17</source>
                        <doclint>none</doclint>
                        <sourcepath>src/main/java</sourcepath>
                        <includeDependencySources>false</includeDependencySources>
                        <dependencySourceIncludes>
                            <dependencySourceInclude>com.sshtools:*</dependencySourceInclude>
                        </dependencySourceIncludes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.graalvm.buildtools</groupId>
                    <artifactId>native-maven-plugin</artifactId>
                    <version>${graalvm.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
            </plugin>
        </plugins>
    </reporting>
    <repositories>
        <repository>
            <id>oss-snapshots</id>
            <url>https://central.sonatype.com/repository/maven-snapshots</url>
            <snapshots />
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
		<repository>
			<id>ext-snapshots</id>
			<name>snapshots-releases</name>
			<url>https://artifactory.jadaptive.com/ext-snapshots-local</url>
            <snapshots/>
            <releases>
                <enabled>false</enabled>
            </releases>
		</repository>
		<repository>
			<id>opensource-snapshots</id>
			<name>opensource-snapshots</name>
			<url>https://artifactory.jadaptive.com/opensource-snapshots</url>
            <snapshots/>
            <releases>
                <enabled>false</enabled>
            </releases>
		</repository>
		<repository>
			<id>opensource-releases</id>
			<name>opensource-releases</name>
			<url>https://artifactory.jadaptive.com/opensource-releases</url>
            <releases/>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
		</repository>
		
    </repositories>
</project>
