<project
	xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.asbestosstar</groupId>
	<artifactId>crashdetector</artifactId>
	<version>0.9.3</version>
	<packaging>jar</packaging>


	<!-- Add necessary metadata for Maven Central -->
	<name>CrashDetector</name>
	<description>Detects Crashes in JVM Apps.</description>
	<url>https://pagure.io/CrashDetectorMC</url>

	<licenses>
		<license>
			<name>Public Domain</name>
			<url>https://pagure.io/CrashDetectorMC/blob/main/f/LICENSE</url>
		</license>
	</licenses>


	<developers>
		<developer>
			<name>Asbestosstar</name>
			<email>asbestosstar@asbestosstar.com</email>
			<organization>Asbestosstar</organization>
			<organizationUrl>https://asbestosstar.com</organizationUrl>
		</developer>
	</developers>

	<scm>
		<connection>scm:git:https://pagure.io/CrashDetectorMC.git</connection>
		<developerConnection>scm:git:ssh://git@pagure.io/CrashDetectorMC.git</developerConnection>
		<url>https://pagure.io/CrashDetectorMC</url>
	</scm>


	


	<build>
		<plugins>

			<!-- Add the Maven Compiler Plugin -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.13.0</version>
				<configuration>
					<source>${maven.compiler.source}</source>
					<target>${maven.compiler.target}</target>
					<compilerArgs>
						<!-- Disable annotation processing -->
						<arg>-proc:none</arg>
						<!-- Suppress the warning message -->
						<arg>-Xlint:-options</arg>
					</compilerArgs>
				</configuration>
			</plugin>


			<plugin>
				<groupId>com.asbestosstar</groupId>
				<artifactId>modlauncher-bytecode-compat-maven-plugin</artifactId>
				<version>0.0.1</version>
				<executions>
					<execution>
						<goals>
							<goal>inject-compat-methods</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<patches>
						<patch>
							<className>
								com.asbestosstar.crashdetector.CrashDetectorModLauncher</className>
							<failIfMissingClass>true</failIfMissingClass>
							<methods>
								<method>
									<name>beginScanning</name>
									<descriptor>
										(Lcpw/mods/modlauncher/api/IEnvironment;)V</descriptor>
									<access>public</access>
									<kind>NO_OP_VOID</kind>
								</method>
							</methods>
						</patch>

						<patch>
							<className>
								com.asbestosstar.crashdetector.TransformacionesCPW</className>
							<failIfMissingClass>true</failIfMissingClass>
							<methods>
								<method>
									<name>getTargetType</name>
									<descriptor>
										()Lcpw/mods/modlauncher/api/TargetType;</descriptor>
									<access>public</access>
									<kind>RETURN_STATIC_FIELD</kind>
									<fieldOwner>
										cpw.mods.modlauncher.api.TargetType</fieldOwner>
									<fieldName>CLASS</fieldName>
									<fieldDescriptor>
										Lcpw/mods/modlauncher/api/TargetType;</fieldDescriptor>
								</method>
							</methods>
						</patch>
					</patches>
				</configuration>
			</plugin>


			<!-- other plugins omitted -->
			<plugin>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.4.2</version>
				<configuration>
					<archive>
						<manifestEntries>
							<Premain-Class>
								com.asbestosstar.crashdetector.CrashDetectorFCMC
							</Premain-Class>
							<Can-Redefine-Classes>true</Can-Redefine-Classes>
							<Can-Retransform-Classes>true</Can-Retransform-Classes>
							<FMLModType>LIBRARY</FMLModType><!-- para NeoForge
							1.21.9 -->


							<FMLCorePluginContainsFMLMod>true</FMLCorePluginContainsFMLMod>
							<FMLCorePlugin>
								com.asbestosstar.crashdetector.CrashDetectorMCForge</FMLCorePlugin>

							<TransformerClass>
								com.asbestosstar.crashdetector.CrashDetectorMeddle</TransformerClass>
							<MixinConfigs>
								crashdetectorfabricmctrancformaciones.mixins.json</MixinConfigs>


						</manifestEntries>
					</archive>
				</configuration>
			</plugin>
			
			
			
			
			
			
			<!-- ========= PLUGINS DE PUBLICACION PARA MAVEN CENTRAL ========= -->

<!-- Adjuntar fuentes -->
<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>

<!-- Adjuntar Javadoc -->
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-javadoc-plugin</artifactId>
	<version>3.8.0</version>
	<executions>
		<execution>
			<id>attach-javadocs</id>
			<phase>verify</phase>
			<goals>
				<goal>jar</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<failOnError>false</failOnError>
		<quiet>true</quiet>
		<source>8</source>
		<additionalJOption>-Xdoclint:none</additionalJOption>
	</configuration>
</plugin>

<!-- Firmar artefactos con GPG, requerido para Maven Central -->
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-gpg-plugin</artifactId>
	<version>3.2.7</version>
	<executions>
		<execution>
			<id>sign-artifacts</id>
			<phase>verify</phase>
			<goals>
				<goal>sign</goal>
			</goals>
			<configuration>
				<gpgArguments>
					<arg>--pinentry-mode</arg>
					<arg>loopback</arg>
				</gpgArguments>
			</configuration>
		</execution>
	</executions>
</plugin>

<!-- Publicar al nuevo Sonatype Central Publisher Portal -->
<plugin>
	<groupId>org.sonatype.central</groupId>
	<artifactId>central-publishing-maven-plugin</artifactId>
	<version>0.10.0</version>
	<extensions>true</extensions>
	<configuration>
		<publishingServerId>central</publishingServerId>
		<autoPublish>true</autoPublish>
		<waitUntil>published</waitUntil>
	</configuration>
</plugin>

<!-- ========= FIN PLUGINS DE PUBLICACION ========= -->
			
			
			
			
			
			
		</plugins>
	</build>
	<dependencies>
		<!-- Gson Dependency -->
		<dependency>
			<groupId>com.google.code.gson</groupId>
			<artifactId>gson</artifactId>
			<version>2.10.1</version>
		</dependency>

		<!-- Guava Dependency -->
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>31.1-jre</version>
		</dependency>

		<!-- Existing Dependencies -->
		<dependency>
			<groupId>net.fabricmc</groupId>
			<artifactId>fabric-loader</artifactId>
			<version>0.15.7</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/cpw.mods/modlauncher -->
		<dependency>
			<groupId>cpw.mods</groupId>
			<artifactId>modlauncher</artifactId>
			<version>11.0.5</version>
		</dependency>

		<dependency>

			<groupId>cpw.mods</groupId>

			<artifactId>modlauncher</artifactId>

			<version>0.10.0</version>

			<classifier>api</classifier>

		</dependency>

		<dependency>

			<groupId>cpw.mods</groupId>

			<artifactId>grossjava9hacks</artifactId>

			<version>1.3.3</version>

		</dependency>
		<dependency>
			<groupId>net.minecraftforge</groupId>
			<artifactId>forgespi</artifactId>
			<version>6.0.0</version>
		</dependency>
		<dependency>
			<groupId>org.spongepowered</groupId>
			<artifactId>mixin</artifactId>
			<version>0.8.5</version>
		</dependency>
		<dependency>
			<groupId>com.asbestosstar</groupId>
			<artifactId>featurecreep-loader</artifactId>
			<version>4.0pre19</version>
		</dependency>

	<!--	<dependency>
			<groupId>com.kaolinmc</groupId>
			<artifactId>tooling-api</artifactId>
			<version>1.1.3-SNAPSHOT</version>
		</dependency> -->


		<!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
		<dependency>
			<groupId>org.javassist</groupId>
			<artifactId>javassist</artifactId>
			<version>3.27.0-GA</version>
		</dependency>


		<!-- https://mvnrepository.com/artifact/org.jboss/jboss-dmr -->
		<dependency>
			<groupId>org.jboss</groupId>
			<artifactId>jboss-dmr</artifactId>
			<version>1.6.1.Final</version>
		</dependency>

		<dependency>
			<groupId>com.electronwill.night-config</groupId>
			<artifactId>toml</artifactId>
			<version>3.6.0</version>
		</dependency>


		<dependency>
			<groupId>net.neoforged.fancymodloader</groupId>
			<artifactId>loader</artifactId>
			<version>10.0.14</version>
		</dependency>


		<!--
		https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<version>2.20.0</version>
		</dependency>


		<!-- existe porque una limitacion de nivel src para servicio modlauncher
		. TODO publicar en Central
		<dependency>
			<groupId>com.github.Asbestosstar</groupId>
			<artifactId>special-waffle</artifactId>
			<version>0</version>
			<scope>compile</scope>
		</dependency>-->
		<dependency>
			<groupId>org.mangorage</groupId>
			<artifactId>mangomodloader-api</artifactId>
			<version>1.1.3</version>
		</dependency>


		<!-- https://mvnrepository.com/artifact/io.github.CDAGaming/DiscordIPC -->
		<dependency>
			<groupId>io.github.CDAGaming</groupId>
			<artifactId>DiscordIPC</artifactId>
			<version>0.10.2</version>
		</dependency>


		<!-- https://mvnrepository.com/artifact/net.fabricmc/cfr -->
		<dependency>
			<groupId>net.fabricmc</groupId>
			<artifactId>cfr</artifactId>
			<version>0.2.2</version>
		</dependency>


		<!-- Source: https://mvnrepository.com/artifact/org.lwjgl/lwjgl-glfw -->
		<dependency>
			<groupId>org.lwjgl</groupId>
			<artifactId>lwjgl-glfw</artifactId>
			<version>3.1.4</version>
			<scope>compile</scope>
		</dependency>

		<!-- Source: https://mvnrepository.com/artifact/org.lwjgl/lwjgl-opengl -->
		<dependency>
			<groupId>org.lwjgl</groupId>
			<artifactId>lwjgl-opengl</artifactId>
			<version>3.1.4</version>
			<scope>compile</scope>
		</dependency>


		<dependency>
			<groupId>com.asbestosstar</groupId>
			<artifactId>rift-init-listener</artifactId>
			<version>0.0.1</version>
		</dependency>


		<dependency>
			<groupId>net.minecraft</groupId>
			<artifactId>launchwrapper</artifactId>
			<version>1.12</version>
		</dependency>


		<dependency>
			<groupId>net.minecraftforge</groupId>
			<artifactId>forge</artifactId>
			<version>1.12-14.21.1.2443</version>
			<classifier>universal</classifier>
		</dependency>


		<!-- Source: https://mvnrepository.com/artifact/org.bukkit/bukkit -->
		<dependency>
			<groupId>org.bukkit</groupId>
			<artifactId>bukkit</artifactId>
			<version>1.7.9-R0.2</version>
			<scope>provided</scope>
		</dependency>


		<dependency>
			<groupId>com.github.FyberOptic</groupId>
			<artifactId>Meddle</artifactId>
			<version>1.3</version>
		</dependency>


		<dependency>
			<groupId>com.unascribed</groupId>
			<artifactId>nilloader</artifactId>
			<version>1.3.5</version>
		</dependency>




<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>5.13.3.202401111512-r</version>
    <scope>provided</scope>
</dependency>

<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit.ssh.apache</artifactId>
    <version>5.13.3.202401111512-r</version>
    <scope>provided</scope>
</dependency>



<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit.http.apache</artifactId>
    <version>5.13.3.202401111512-r</version>
    <scope>provided</scope>
</dependency>

<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit.ui</artifactId>
    <version>5.13.3.202401111512-r</version>
    <scope>provided</scope>
</dependency>

<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit.archive</artifactId>
    <version>5.13.3.202401111512-r</version>
    <scope>provided</scope>
</dependency>

<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit.lfs</artifactId>
    <version>5.13.3.202401111512-r</version>
    <scope>provided</scope>
</dependency>

<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit.gpg.bc</artifactId>
    <version>5.13.3.202401111512-r</version>
    <scope>provided</scope>
</dependency>


		<!-- Source: https://mvnrepository.com/artifact/net.canarymod/CanaryLib -->
<dependency>
    <groupId>net.canarymod</groupId>
    <artifactId>CanaryLib</artifactId>
    <version>1.2.0</version>
    <scope>provided</scope>
</dependency>


		<!-- Source: https://mvnrepository.com/artifact/net.canarymod/CanaryLib -->
<dependency>
    <groupId>curse.maven</groupId>
    <artifactId>litlaunch-api-358829</artifactId>
    <version>3406077</version>
</dependency>

<dependency>
    <groupId>com.asbestosstar</groupId>
    <artifactId>risugamis-modloader-abstract-basemod</artifactId>
    <version>0.0.1</version>
</dependency>


<dependency>
    <groupId>com.asbestosstar</groupId>
    <artifactId>hmod-plugin-base</artifactId>
    <version>0.0.1</version>
</dependency>


    <dependency>
        <groupId>cuchaz</groupId>
        <artifactId>m3l</artifactId>
        <version>1.8.3-0.4b</version>
    </dependency>


<dependency>
        <groupId>org.spongepowered</groupId>
        <artifactId>spongeapi</artifactId>
        <version>8.0.0</version>
        <scope>provided</scope>
    </dependency>


<dependency>
        <groupId>maven.modrinth</groupId>
        <artifactId>loadercomplex</artifactId>
        <version>0.1.1</version>
        <scope>provided</scope>
    </dependency>





<dependency>
    <groupId>com.asbestosstar</groupId>
    <artifactId>flintloader-flintmodule-stub</artifactId>
    <version>0.0.1</version>
        <scope>provided</scope>

</dependency>





<dependency>
    <groupId>com.asbestosstar</groupId>
    <artifactId>ifmlloadingplugin-172</artifactId>
    <version>0.0.1</version>
        <scope>provided</scope>

</dependency>





  <dependency>
        <groupId>de.marhali</groupId>
        <artifactId>json5-java</artifactId>
        <version>3.0.0</version>
            <scope>provided</scope>

    </dependency>


		<!-- Source: https://mvnrepository.com/artifact/org.apache.commons/commons-configuration2 -->
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-configuration2</artifactId>
    <version>2.15.0</version>
    <scope>provided</scope>

</dependency>


		<!-- Source: https://mvnrepository.com/artifact/org.ini4j/ini4j -->
<dependency>
    <groupId>org.ini4j</groupId>
    <artifactId>ini4j</artifactId>
    <version>0.5.4</version>
    <scope>provided</scope>
</dependency>




<dependency>
	<groupId>com.github.Querz</groupId>
	<artifactId>NBT</artifactId>
	<version>6.1</version>
	    <scope>provided</scope>
</dependency>























	</dependencies>


	<repositories>


		<repository>
			<id>central</id>
			<url>https://repo1.maven.org/maven2/</url>
		</repository>
		<repository>
			<id>jitpack.io</id>
			<url>https://www.jitpack.io</url>
		</repository>

		<repository>
			<id>cursemaven</id>
			<name>cursemaven</name>
			<url>https://cursemaven.com</url>
		</repository>
		<repository>
			<id>kaolinmc</id>
			<name>kaolinmc</name>
			<url>https://maven.kaolinmc.com/snapshots</url>
		</repository>
		<repository>
			<id>mangorage</id>
			<name>mangorage</name>
			<url>https://maven.mangorage.org/releases/</url>
		</repository>
		<repository>
			<id>velocity</id>
			<name>velocity</name>
			<url>https://repo.papermc.io/repository/maven-public/</url>
		</repository>


		<repository>
			<id>nf</id>
			<name>nf</name>
			<url>https://maven.neoforged.net/releases/</url>
		</repository>


		<repository>
			<id>carm</id>
			<name>carm</name>
			<url>https://repo.carm.cc/repository/maven-public/</url>
		</repository>


		<repository>
			<id>MCForge</id>
			<name>MCForge</name>
			<url>https://files.minecraftforge.net/maven/</url>
		</repository>

		<repository>
			<id>TLauncher</id>
			<name>TLauncher</name>
			<url>https://res.tlauncher.org/unb/libraries/</url>
		</repository>


		<repository>
			<id>SleepingTown</id>
			<name>SleepingTown</name>
			<url>https://repo.sleeping.town</url>
		</repository>


		<repository>
			<id>Neptune</id>
			<name>Neptune</name>
			<url>https://repo.neptunepowered.org/maven/</url>
		</repository>

    <repository>
    			<id>cuchazinteractive</id>
        <name>cuchazinteractive</name>
        <url>https://maven.cuchazinteractive.com/</url>
    </repository>

 
<repository>
        <id>spongepowered-repo</id>
                <name>spongepowered</name>
        <url>https://repo.spongepowered.org/repository/maven-public/</url>
    </repository> 
 
 <repository>
        <id>modrinth</id>
                <name>modrinth</name>
        <url>https://api.modrinth.com/maven/</url>
    </repository> 
  

	</repositories>
	<properties>
		<maven.compiler.target>1.8</maven.compiler.target>
		<maven.compiler.source>1.8</maven.compiler.source>

	</properties>
	
	
	
	<profiles>
	<profile>
		<id>dev</id>
		<properties>
			<gpg.skip>true</gpg.skip>
		</properties>
	</profile>
</profiles>
	
	
	
</project>
