|
| 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 | + <groupId>com.loohp</groupId> |
| 8 | + <artifactId>ImageFrame</artifactId> |
| 9 | + <version>1.0.0.0</version> |
| 10 | + <packaging>jar</packaging> |
| 11 | + |
| 12 | + <name>ImageFrame</name> |
| 13 | + |
| 14 | + <description>Put images on walls!</description> |
| 15 | + |
| 16 | + <properties> |
| 17 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 18 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 19 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 20 | + <project.build.number></project.build.number> |
| 21 | + <project.fullVersion>${project.version}</project.fullVersion> |
| 22 | + </properties> |
| 23 | + |
| 24 | + <build> |
| 25 | + <defaultGoal>clean install</defaultGoal> |
| 26 | + <sourceDirectory>src/main/java</sourceDirectory> |
| 27 | + <testSourceDirectory>src/test/java</testSourceDirectory> |
| 28 | + <resources> |
| 29 | + <resource> |
| 30 | + <directory>src/main/resources</directory> |
| 31 | + <filtering>true</filtering> |
| 32 | + <excludes> |
| 33 | + <exclude>**/*.java</exclude> |
| 34 | + </excludes> |
| 35 | + </resource> |
| 36 | + </resources> |
| 37 | + |
| 38 | + <plugins> |
| 39 | + <plugin> |
| 40 | + <groupId>org.apache.maven.plugins</groupId> |
| 41 | + <artifactId>maven-shade-plugin</artifactId> |
| 42 | + <version>3.2.4</version> |
| 43 | + <executions> |
| 44 | + <execution> |
| 45 | + <phase>package</phase> |
| 46 | + <goals> |
| 47 | + <goal>shade</goal> |
| 48 | + </goals> |
| 49 | + <configuration> |
| 50 | + <shadedArtifactAttached>false</shadedArtifactAttached> |
| 51 | + <createDependencyReducedPom>false</createDependencyReducedPom> |
| 52 | + <relocations> |
| 53 | + <relocation> |
| 54 | + <pattern>com.madgag.gif</pattern> |
| 55 | + <shadedPattern>com.loohp.imageframe.libs.com.madgag.gif</shadedPattern> |
| 56 | + </relocation> |
| 57 | + </relocations> |
| 58 | + </configuration> |
| 59 | + </execution> |
| 60 | + </executions> |
| 61 | + </plugin> |
| 62 | + |
| 63 | + <plugin> |
| 64 | + <artifactId>maven-compiler-plugin</artifactId> |
| 65 | + <version>3.8.1</version> |
| 66 | + <configuration> |
| 67 | + <source>1.8</source> |
| 68 | + <target>1.8</target> |
| 69 | + </configuration> |
| 70 | + </plugin> |
| 71 | + |
| 72 | + <plugin> |
| 73 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 74 | + <version>3.2.0</version> |
| 75 | + <configuration> |
| 76 | + <failOnError>false</failOnError> |
| 77 | + <encoding>ISO-8859-1</encoding> |
| 78 | + <doctitle>ImageFrame JavaDocs</doctitle> |
| 79 | + <windowtitle>ImageFrame JavaDocs</windowtitle> |
| 80 | + <additionalOptions> |
| 81 | + <additionalOption>-Xdoclint:none</additionalOption> |
| 82 | + </additionalOptions> |
| 83 | + </configuration> |
| 84 | + <executions> |
| 85 | + <execution> |
| 86 | + <phase>install</phase> |
| 87 | + <goals> |
| 88 | + <goal>aggregate</goal> |
| 89 | + </goals> |
| 90 | + </execution> |
| 91 | + </executions> |
| 92 | + </plugin> |
| 93 | + </plugins> |
| 94 | + </build> |
| 95 | + |
| 96 | + <profiles> |
| 97 | + <profile> |
| 98 | + <id>jenkins</id> |
| 99 | + <activation> |
| 100 | + <property> |
| 101 | + <name>env.BUILD_NUMBER</name> |
| 102 | + </property> |
| 103 | + </activation> |
| 104 | + <properties> |
| 105 | + <project.build.number>-b${env.BUILD_NUMBER}</project.build.number> |
| 106 | + <!--<project.fullVersion>${project.version}${project.build.number}</project.fullVersion> --> |
| 107 | + <project.fullVersion>${project.version}</project.fullVersion> |
| 108 | + </properties> |
| 109 | + </profile> |
| 110 | + |
| 111 | + <profile> |
| 112 | + <id>release-sign-artifacts</id> |
| 113 | + <activation> |
| 114 | + <property> |
| 115 | + <name>performRelease</name> |
| 116 | + <value>true</value> |
| 117 | + </property> |
| 118 | + </activation> |
| 119 | + <properties> |
| 120 | + <project.fullVersion>${project.version}</project.fullVersion> |
| 121 | + </properties> |
| 122 | + <build> |
| 123 | + <plugins> |
| 124 | + <plugin> |
| 125 | + <groupId>org.apache.maven.plugins</groupId> |
| 126 | + <artifactId>maven-source-plugin</artifactId> |
| 127 | + <version>3.2.1</version> |
| 128 | + <configuration> |
| 129 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 130 | + </configuration> |
| 131 | + <executions> |
| 132 | + <execution> |
| 133 | + <id>attach-sources</id> |
| 134 | + <goals> |
| 135 | + <goal>jar</goal> |
| 136 | + </goals> |
| 137 | + </execution> |
| 138 | + </executions> |
| 139 | + </plugin> |
| 140 | + |
| 141 | + <plugin> |
| 142 | + <groupId>org.apache.maven.plugins</groupId> |
| 143 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 144 | + <version>3.2.0</version> |
| 145 | + <configuration> |
| 146 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 147 | + </configuration> |
| 148 | + <executions> |
| 149 | + <execution> |
| 150 | + <id>attach-javadocs</id> |
| 151 | + <goals> |
| 152 | + <goal>jar</goal> |
| 153 | + </goals> |
| 154 | + </execution> |
| 155 | + </executions> |
| 156 | + </plugin> |
| 157 | + </plugins> |
| 158 | + </build> |
| 159 | + </profile> |
| 160 | + </profiles> |
| 161 | + |
| 162 | + <repositories> |
| 163 | + <repository> |
| 164 | + <id>spigotmc-repo</id> |
| 165 | + <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> |
| 166 | + </repository> |
| 167 | + <repository> |
| 168 | + <id>sonatype</id> |
| 169 | + <url>https://oss.sonatype.org/content/groups/public/</url> |
| 170 | + </repository> |
| 171 | + <repository> |
| 172 | + <id>jitpack.io</id> |
| 173 | + <url>https://jitpack.io</url> |
| 174 | + </repository> |
| 175 | + <repository> |
| 176 | + <id>loohp-repo</id> |
| 177 | + <url>https://repo.loohpjames.com/repository</url> |
| 178 | + </repository> |
| 179 | + </repositories> |
| 180 | + |
| 181 | + <dependencies> |
| 182 | + <dependency> |
| 183 | + <groupId>org.spigotmc</groupId> |
| 184 | + <artifactId>spigot-api</artifactId> |
| 185 | + <version>1.19.2-R0.1-SNAPSHOT</version> |
| 186 | + <scope>provided</scope> |
| 187 | + </dependency> |
| 188 | + <dependency> |
| 189 | + <groupId>org.bukkit</groupId> |
| 190 | + <artifactId>craftbukkit</artifactId> |
| 191 | + <version>1.19.2-R0.1-SNAPSHOT</version> |
| 192 | + <scope>provided</scope> |
| 193 | + </dependency> |
| 194 | + <dependency> |
| 195 | + <groupId>me.carleslc.Simple-YAML</groupId> |
| 196 | + <artifactId>Simple-Yaml</artifactId> |
| 197 | + <version>1.8.1</version> |
| 198 | + <scope>compile</scope> |
| 199 | + </dependency> |
| 200 | + <dependency> |
| 201 | + <groupId>com.madgag</groupId> |
| 202 | + <artifactId>animated-gif-lib</artifactId> |
| 203 | + <version>1.4</version> |
| 204 | + <scope>compile</scope> |
| 205 | + </dependency> |
| 206 | + </dependencies> |
| 207 | +</project> |
0 commit comments