|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <parent> |
| 7 | + <groupId>org.betonquest</groupId> |
| 8 | + <artifactId>parent</artifactId> |
| 9 | + <version>2.10.0</version> |
| 10 | + </parent> |
| 11 | + |
| 12 | + <name>BetonQuest Build</name> |
| 13 | + <artifactId>betonquest</artifactId> |
| 14 | + <version>3.0.2</version> |
| 15 | + <description>All Your Adventure Supplies</description> |
| 16 | + |
| 17 | + <properties> |
| 18 | + <revision>3.0.2</revision> |
| 19 | + <changelist>-SNAPSHOT</changelist> |
| 20 | + <pit.report.skip>true</pit.report.skip> |
| 21 | + |
| 22 | + <maven-shade-plugin.path>${project.groupId}.${project.artifactId}</maven-shade-plugin.path> |
| 23 | + |
| 24 | + <!-- plugin metadata --> |
| 25 | + <plugin.name>BetonQuest</plugin.name> |
| 26 | + <plugin.main>${project.groupId}.${project.artifactId}.${plugin.name}Plugin</plugin.main> |
| 27 | + <plugin.version>3.0.2</plugin.version> |
| 28 | + <plugin.api-version>1.18</plugin.api-version> |
| 29 | + <plugin.description>All Your Adventure Supplies</plugin.description> |
| 30 | + |
| 31 | + <!-- module versions --> |
| 32 | + <betonquest.core.version>3.0.2</betonquest.core.version> |
| 33 | + <betonquest.mc_1_20_6.version>3.0.2</betonquest.mc_1_20_6.version> |
| 34 | + <betonquest.mc_1_21_4.version>3.0.2</betonquest.mc_1_21_4.version> |
| 35 | + <betonquest.compatibility.version>3.0.2</betonquest.compatibility.version> |
| 36 | + |
| 37 | + <!-- dependency versions --> |
| 38 | + <paper-api.version>1.18.2-R0.1-SNAPSHOT</paper-api.version> |
| 39 | + </properties> |
| 40 | + |
| 41 | + <dependencies> |
| 42 | + <!-- from betonquest module --> |
| 43 | + <dependency> |
| 44 | + <groupId>org.betonquest.betonquest</groupId> |
| 45 | + <artifactId>core</artifactId> |
| 46 | + <version>${betonquest.core.version}</version> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>org.betonquest.betonquest</groupId> |
| 50 | + <artifactId>mc_1_20_6</artifactId> |
| 51 | + <version>${betonquest.mc_1_20_6.version}</version> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>org.betonquest.betonquest</groupId> |
| 55 | + <artifactId>mc_1_21_4</artifactId> |
| 56 | + <version>${betonquest.mc_1_21_4.version}</version> |
| 57 | + </dependency> |
| 58 | + <dependency> |
| 59 | + <groupId>org.betonquest.betonquest</groupId> |
| 60 | + <artifactId>compatibility</artifactId> |
| 61 | + <version>${betonquest.compatibility.version}</version> |
| 62 | + </dependency> |
| 63 | + |
| 64 | + <!-- from papermc repository --> |
| 65 | + <dependency> |
| 66 | + <groupId>io.papermc.paper</groupId> |
| 67 | + <artifactId>paper-api</artifactId> |
| 68 | + <version>${paper-api.version}</version> |
| 69 | + <scope>provided</scope> |
| 70 | + <exclusions> |
| 71 | + <exclusion> |
| 72 | + <groupId>junit</groupId> |
| 73 | + <artifactId>junit</artifactId> |
| 74 | + </exclusion> |
| 75 | + </exclusions> |
| 76 | + </dependency> |
| 77 | + </dependencies> |
| 78 | + |
| 79 | + <repositories> |
| 80 | + <repository> |
| 81 | + <id>betonquest-repo</id> |
| 82 | + <url>https://repo.betonquest.org/betonquest/</url> |
| 83 | + </repository> |
| 84 | + <repository> |
| 85 | + <id>betonquest-papermc-repo</id> |
| 86 | + <url>https://repo.papermc.io/repository/maven-public/</url> |
| 87 | + </repository> |
| 88 | + </repositories> |
| 89 | + |
| 90 | + <build> |
| 91 | + <plugins> |
| 92 | + <plugin> |
| 93 | + <groupId>org.apache.maven.plugins</groupId> |
| 94 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 95 | + <executions> |
| 96 | + <execution> |
| 97 | + <id>enforce-banned-dependencies</id> |
| 98 | + <goals> |
| 99 | + <goal>enforce</goal> |
| 100 | + </goals> |
| 101 | + <configuration> |
| 102 | + <rules> |
| 103 | + <bannedDependencies> |
| 104 | + <excludes> |
| 105 | + <exclude>org.spigotmc</exclude> |
| 106 | + <exclude>org.bukkit</exclude> |
| 107 | + </excludes> |
| 108 | + </bannedDependencies> |
| 109 | + </rules> |
| 110 | + <fail>true</fail> |
| 111 | + </configuration> |
| 112 | + </execution> |
| 113 | + </executions> |
| 114 | + </plugin> |
| 115 | + <plugin> |
| 116 | + <groupId>org.apache.maven.plugins</groupId> |
| 117 | + <artifactId>maven-shade-plugin</artifactId> |
| 118 | + <executions> |
| 119 | + <execution> |
| 120 | + <phase>package</phase> |
| 121 | + <goals> |
| 122 | + <goal>shade</goal> |
| 123 | + </goals> |
| 124 | + <configuration> |
| 125 | + <artifactSet> |
| 126 | + <includes> |
| 127 | + <include>org.betonquest.betonquest</include> |
| 128 | + <include>org.bstats</include> |
| 129 | + <include>dev.faststats.metrics</include> |
| 130 | + <include>org.apache.maven</include> |
| 131 | + <include>org.apache.commons</include> |
| 132 | + <include>com.google.guava</include> |
| 133 | + <include>commons-io</include> |
| 134 | + <include>com.cronutils:cron-utils</include> |
| 135 | + <include>de.themoep:minedown-adventure</include> |
| 136 | + </includes> |
| 137 | + </artifactSet> |
| 138 | + <filters> |
| 139 | + <filter> |
| 140 | + <artifact>org.bstats</artifact> |
| 141 | + <includes> |
| 142 | + <include>org/bstats/**</include> |
| 143 | + </includes> |
| 144 | + </filter> |
| 145 | + </filters> |
| 146 | + <relocations> |
| 147 | + <relocation> |
| 148 | + <pattern>org.bstats</pattern> |
| 149 | + <shadedPattern>${maven-shade-plugin.path}.dependencies.org.bstats</shadedPattern> |
| 150 | + </relocation> |
| 151 | + <relocation> |
| 152 | + <pattern>org.apache.maven</pattern> |
| 153 | + <shadedPattern>${maven-shade-plugin.path}.dependencies.org.apache.maven</shadedPattern> |
| 154 | + </relocation> |
| 155 | + <relocation> |
| 156 | + <pattern>org.apache.commons</pattern> |
| 157 | + <shadedPattern>${maven-shade-plugin.path}.dependencies.org.apache.commons</shadedPattern> |
| 158 | + </relocation> |
| 159 | + <relocation> |
| 160 | + <pattern>com.google.common</pattern> |
| 161 | + <shadedPattern>${maven-shade-plugin.path}.dependencies.com.google.common</shadedPattern> |
| 162 | + </relocation> |
| 163 | + <relocation> |
| 164 | + <pattern>com.cronutils</pattern> |
| 165 | + <shadedPattern>${maven-shade-plugin.path}.dependencies.com.cronutils</shadedPattern> |
| 166 | + </relocation> |
| 167 | + <relocation> |
| 168 | + <pattern>de.themoep</pattern> |
| 169 | + <shadedPattern>${maven-shade-plugin.path}.dependencies.de.themoep</shadedPattern> |
| 170 | + </relocation> |
| 171 | + </relocations> |
| 172 | + </configuration> |
| 173 | + </execution> |
| 174 | + </executions> |
| 175 | + </plugin> |
| 176 | + <plugin> |
| 177 | + <groupId>org.apache.maven.plugins</groupId> |
| 178 | + <artifactId>maven-antrun-plugin</artifactId> |
| 179 | + <executions> |
| 180 | + <execution> |
| 181 | + <id>copy-jar-files</id> |
| 182 | + <phase>package</phase> |
| 183 | + <goals> |
| 184 | + <goal>run</goal> |
| 185 | + </goals> |
| 186 | + <configuration> |
| 187 | + <target name="copy .jar files to root"> |
| 188 | + <copy toDir="../../target/code" |
| 189 | + overwrite="true" |
| 190 | + quiet="true" |
| 191 | + verbose="true" |
| 192 | + failonerror="false" |
| 193 | + preservelastmodified="true"> |
| 194 | + <fileset dir="../"> |
| 195 | + <include name="*/target/code/*.jar"/> |
| 196 | + </fileset> |
| 197 | + <filtermapper> |
| 198 | + <replacestring from="target/code/" to=""/> |
| 199 | + </filtermapper> |
| 200 | + </copy> |
| 201 | + <copy file="${project.build.directory}/${project.name}.jar" |
| 202 | + tofile="../../target/code/BetonQuest.jar" |
| 203 | + overwrite="true" |
| 204 | + quiet="true" |
| 205 | + verbose="true" |
| 206 | + failonerror="false" |
| 207 | + preservelastmodified="true"/> |
| 208 | + </target> |
| 209 | + </configuration> |
| 210 | + </execution> |
| 211 | + </executions> |
| 212 | + </plugin> |
| 213 | + </plugins> |
| 214 | + </build> |
| 215 | +</project> |
0 commit comments