|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <parent> |
| 8 | + <groupId>fr.xephi</groupId> |
| 9 | + <artifactId>authme-parent</artifactId> |
| 10 | + <version>${revision}</version> |
| 11 | + </parent> |
| 12 | + |
| 13 | + <artifactId>authme-bungee</artifactId> |
| 14 | + <packaging>jar</packaging> |
| 15 | + <name>AuthMeBungee</name> |
| 16 | + <description>AuthMe proxy bridge for BungeeCord</description> |
| 17 | + |
| 18 | + <properties> |
| 19 | + <module.java.version>21</module.java.version> |
| 20 | + <module.classifier>Bungee</module.classifier> |
| 21 | + </properties> |
| 22 | + |
| 23 | + <dependencies> |
| 24 | + <dependency> |
| 25 | + <groupId>net.md-5</groupId> |
| 26 | + <artifactId>bungeecord-api</artifactId> |
| 27 | + <scope>provided</scope> |
| 28 | + </dependency> |
| 29 | + <dependency> |
| 30 | + <groupId>ch.jalu</groupId> |
| 31 | + <artifactId>configme</artifactId> |
| 32 | + <scope>compile</scope> |
| 33 | + </dependency> |
| 34 | + <dependency> |
| 35 | + <groupId>org.junit.jupiter</groupId> |
| 36 | + <artifactId>junit-jupiter</artifactId> |
| 37 | + <scope>test</scope> |
| 38 | + </dependency> |
| 39 | + <dependency> |
| 40 | + <groupId>org.mockito</groupId> |
| 41 | + <artifactId>mockito-core</artifactId> |
| 42 | + <scope>test</scope> |
| 43 | + </dependency> |
| 44 | + <dependency> |
| 45 | + <groupId>org.mockito</groupId> |
| 46 | + <artifactId>mockito-junit-jupiter</artifactId> |
| 47 | + <scope>test</scope> |
| 48 | + </dependency> |
| 49 | + </dependencies> |
| 50 | + |
| 51 | + <build> |
| 52 | + <finalName>AuthMe-${project.version}-${module.classifier}</finalName> |
| 53 | + |
| 54 | + <resources> |
| 55 | + <resource> |
| 56 | + <directory>..</directory> |
| 57 | + <filtering>false</filtering> |
| 58 | + <includes> |
| 59 | + <include>LICENSE</include> |
| 60 | + </includes> |
| 61 | + </resource> |
| 62 | + <resource> |
| 63 | + <directory>src/main/resources</directory> |
| 64 | + <filtering>true</filtering> |
| 65 | + </resource> |
| 66 | + </resources> |
| 67 | + |
| 68 | + <plugins> |
| 69 | + <plugin> |
| 70 | + <groupId>org.apache.maven.plugins</groupId> |
| 71 | + <artifactId>maven-shade-plugin</artifactId> |
| 72 | + <executions> |
| 73 | + <execution> |
| 74 | + <id>shade</id> |
| 75 | + <phase>package</phase> |
| 76 | + <goals> |
| 77 | + <goal>shade</goal> |
| 78 | + </goals> |
| 79 | + </execution> |
| 80 | + </executions> |
| 81 | + </plugin> |
| 82 | + <plugin> |
| 83 | + <groupId>org.apache.maven.plugins</groupId> |
| 84 | + <artifactId>maven-resources-plugin</artifactId> |
| 85 | + <executions> |
| 86 | + <execution> |
| 87 | + <id>generate-build-info-source</id> |
| 88 | + <phase>generate-sources</phase> |
| 89 | + <goals> |
| 90 | + <goal>copy-resources</goal> |
| 91 | + </goals> |
| 92 | + <configuration> |
| 93 | + <outputDirectory>${project.build.directory}/generated-sources/build-info</outputDirectory> |
| 94 | + <resources> |
| 95 | + <resource> |
| 96 | + <directory>src/main/java-templates</directory> |
| 97 | + <filtering>true</filtering> |
| 98 | + <includes> |
| 99 | + <include>**/*.java</include> |
| 100 | + </includes> |
| 101 | + </resource> |
| 102 | + </resources> |
| 103 | + </configuration> |
| 104 | + </execution> |
| 105 | + </executions> |
| 106 | + </plugin> |
| 107 | + <plugin> |
| 108 | + <groupId>org.codehaus.mojo</groupId> |
| 109 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 110 | + <version>3.6.1</version> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <id>add-generated-build-info-source</id> |
| 114 | + <phase>generate-sources</phase> |
| 115 | + <goals> |
| 116 | + <goal>add-source</goal> |
| 117 | + </goals> |
| 118 | + <configuration> |
| 119 | + <sources> |
| 120 | + <source>${project.build.directory}/generated-sources/build-info</source> |
| 121 | + </sources> |
| 122 | + </configuration> |
| 123 | + </execution> |
| 124 | + </executions> |
| 125 | + </plugin> |
| 126 | + <plugin> |
| 127 | + <groupId>org.apache.maven.plugins</groupId> |
| 128 | + <artifactId>maven-antrun-plugin</artifactId> |
| 129 | + <executions> |
| 130 | + <execution> |
| 131 | + <id>remove-original-shaded-jar</id> |
| 132 | + <phase>package</phase> |
| 133 | + <goals> |
| 134 | + <goal>run</goal> |
| 135 | + </goals> |
| 136 | + <configuration> |
| 137 | + <target> |
| 138 | + <delete file="${project.build.directory}/original-${project.build.finalName}.jar" quiet="true"/> |
| 139 | + </target> |
| 140 | + </configuration> |
| 141 | + </execution> |
| 142 | + </executions> |
| 143 | + </plugin> |
| 144 | + <plugin> |
| 145 | + <groupId>org.apache.maven.plugins</groupId> |
| 146 | + <artifactId>maven-source-plugin</artifactId> |
| 147 | + <configuration> |
| 148 | + <finalName>${project.build.finalName}</finalName> |
| 149 | + </configuration> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <id>attach-sources</id> |
| 153 | + <goals> |
| 154 | + <goal>jar</goal> |
| 155 | + </goals> |
| 156 | + </execution> |
| 157 | + </executions> |
| 158 | + </plugin> |
| 159 | + <plugin> |
| 160 | + <groupId>org.apache.maven.plugins</groupId> |
| 161 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 162 | + <configuration> |
| 163 | + <finalName>${project.build.finalName}</finalName> |
| 164 | + <source>${module.java.version}</source> |
| 165 | + <detectOfflineLinks>false</detectOfflineLinks> |
| 166 | + </configuration> |
| 167 | + <executions> |
| 168 | + <execution> |
| 169 | + <id>attach-javadoc</id> |
| 170 | + <goals> |
| 171 | + <goal>jar</goal> |
| 172 | + </goals> |
| 173 | + </execution> |
| 174 | + </executions> |
| 175 | + </plugin> |
| 176 | + </plugins> |
| 177 | + </build> |
| 178 | + |
| 179 | + <repositories> |
| 180 | + <repository> |
| 181 | + <id>oss-repo</id> |
| 182 | + <url>https://oss.sonatype.org/content/groups/public</url> |
| 183 | + </repository> |
| 184 | + </repositories> |
| 185 | +</project> |
0 commit comments