4f427659bb
Moves sanitise out of the Bukkit-bound Ai class so it can be unit tested, and adds hasForeignScript to catch the CJK words the model intermittently drops into Portuguese answers. Colour-code stripping now removes the code character too: replacing only the section sign left "§c" reading as a stray "c" in chat. Surefire now fails on an empty suite, so a misplaced or disabled test class cannot pass as a green build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3jSvSTrG4qsniLSr6TpC6
82 lines
2.9 KiB
XML
82 lines
2.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>
|
|
|
|
<groupId>dev.marcospaulo</groupId>
|
|
<artifactId>canalhandia</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<!-- Paper 26.2's API ships Java 25 class files, so the build JDK must be 25. -->
|
|
<maven.compiler.release>25</maven.compiler.release>
|
|
</properties>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>papermc</id>
|
|
<url>https://repo.papermc.io/repository/maven-public/</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<!-- The BOM keeps the jupiter engine and the platform launcher on matching
|
|
versions. Left to transitive resolution they drift apart, and a mismatched
|
|
launcher fails to discover tests rather than failing the build. -->
|
|
<dependency>
|
|
<groupId>org.junit</groupId>
|
|
<artifactId>junit-bom</artifactId>
|
|
<version>5.11.3</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.papermc.paper</groupId>
|
|
<artifactId>paper-api</artifactId>
|
|
<version>26.2.build.92-stable</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<!-- Version comes from junit-bom above. -->
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>Canalhandia-${project.version}</finalName>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<!-- Pinned because the version Maven bundles by default decides whether JUnit 5
|
|
tests are discovered at all. An older default would skip the whole suite and
|
|
still report BUILD SUCCESS, which is the one failure this project can't see. -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.5.4</version>
|
|
<configuration>
|
|
<!-- The pin above guards against a surefire version that quietly stops
|
|
discovering tests. It does not guard against a test class being
|
|
misplaced, misnamed or disabled, which ends the same way: a green
|
|
build that ran nothing. Failing on an empty suite closes that gap. -->
|
|
<failIfNoTests>true</failIfNoTests>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|