pom.xml
  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.crazysqueak.wordpress.ccmcc2</groupId>
  8      <artifactId>CornerCultMCC2Controller</artifactId>
  9      <version>1.0-SNAPSHOT</version>
 10      <packaging>jar</packaging>
 11  
 12      <name>CornerCultMCC2Controller</name>
 13  
 14      <properties>
 15          <java.version>17</java.version>
 16          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 17      </properties>
 18  
 19      <profiles>
 20          <profile>
 21              <id>release</id>
 22              <build>
 23                  <plugins>
 24                      <plugin>
 25                          <groupId>org.apache.maven.plugins</groupId>
 26                          <artifactId>maven-source-plugin</artifactId>
 27                          <version>3.2.0</version>
 28                          <executions>
 29                              <execution>
 30                                  <id>attach-sources</id>
 31                                  <goals>
 32                                      <goal>jar-no-fork</goal>
 33                                  </goals>
 34                              </execution>
 35                          </executions>
 36                      </plugin>
 37                      <plugin>
 38                          <groupId>org.apache.maven.plugins</groupId>
 39                          <artifactId>maven-javadoc-plugin</artifactId>
 40                          <version>3.2.0</version>
 41                          <executions>
 42                              <execution>
 43                                  <id>attach-javadocs</id>
 44                                  <goals>
 45                                      <goal>jar</goal>
 46                                  </goals>
 47                              </execution>
 48                          </executions>
 49                      </plugin>
 50                      <plugin>
 51                          <groupId>org.apache.maven.plugins</groupId>
 52                          <artifactId>maven-gpg-plugin</artifactId>
 53                          <version>1.6</version>
 54                          <executions>
 55                              <execution>
 56                                  <id>sign-artifacts</id>
 57                                  <phase>verify</phase>
 58                                  <goals>
 59                                      <goal>sign</goal>
 60                                  </goals>
 61                              </execution>
 62                          </executions>
 63                      </plugin>
 64                  </plugins>
 65                  <resources>
 66                      <resource>
 67                          <directory>src/main/resources</directory>
 68                          <filtering>true</filtering>
 69                      </resource>
 70                  </resources>
 71              </build>
 72          </profile>
 73      </profiles>
 74  
 75      <build>
 76          <resources>
 77              <resource>
 78                  <directory>${project.basedir}/src/main/resources</directory>
 79                  <filtering>true</filtering>
 80              </resource>
 81          </resources>
 82          <plugins>
 83              <plugin>
 84                  <groupId>org.apache.maven.plugins</groupId>
 85                  <artifactId>maven-compiler-plugin</artifactId>
 86                  <version>3.8.1</version>
 87                  <configuration>
 88                      <source>${java.version}</source>
 89                      <target>${java.version}</target>
 90  <!--                    <annotationProcessorPaths>-->
 91  <!--                        <annotationProcessorPath>-->
 92  <!--                            <groupId>com.velocitypowered</groupId>-->
 93  <!--                            <artifactId>velocity-annotation-processor</artifactId>-->
 94  <!--                            <version>4.0.0-SNAPSHOT</version>-->
 95  <!--                        </annotationProcessorPath>-->
 96  <!--                    </annotationProcessorPaths>-->
 97                  </configuration>
 98              </plugin>
 99              <plugin>
100                  <groupId>org.codehaus.mojo</groupId>
101                  <artifactId>templating-maven-plugin</artifactId>
102                  <version>1.0.0</version>
103                  <executions>
104                      <execution>
105                          <id>filter-src</id>
106                          <goals>
107                              <goal>filter-sources</goal>
108                          </goals>
109                      </execution>
110                  </executions>
111              </plugin>
112              <plugin>
113                  <groupId>org.apache.maven.plugins</groupId>
114                  <artifactId>maven-site-plugin</artifactId>
115                  <version>3.9.1</version>
116                  <dependencies>
117                      <dependency>
118                          <groupId>net.trajano.wagon</groupId>
119                          <artifactId>wagon-git</artifactId>
120                          <version>2.0.4</version>
121                      </dependency>
122                      <dependency>
123                          <groupId>org.apache.maven.doxia</groupId>
124                          <artifactId>doxia-module-markdown</artifactId>
125                          <version>1.9.1</version>
126                      </dependency>
127                  </dependencies>
128              </plugin>
129              <plugin>
130                  <groupId>org.apache.maven.plugins</groupId>
131                  <artifactId>maven-release-plugin</artifactId>
132                  <version>3.0.0-M1</version>
133                  <configuration>
134                      <autoVersionSubmodules>true</autoVersionSubmodules>
135                      <tagNameFormat>@{project.version}</tagNameFormat>
136                      <scmCommentPrefix xml:space="preserve">[RELEASE] </scmCommentPrefix>
137                      <goals>install deploy site-deploy
138                      </goals> <!-- install is here to fix javadoc generation in multi-module projects -->
139                      <releaseProfiles>release</releaseProfiles>
140                  </configuration>
141              </plugin>
142              <plugin>
143                  <groupId>org.apache.maven.plugins</groupId>
144                  <artifactId>maven-shade-plugin</artifactId>
145                  <version>3.2.4</version>
146                  <executions>
147                      <execution>
148                          <phase>package</phase>
149                          <goals>
150                              <goal>shade</goal>
151                          </goals>
152                          <configuration>
153                              <createDependencyReducedPom>false</createDependencyReducedPom>
154                          </configuration>
155                      </execution>
156                  </executions>
157              </plugin>
158          </plugins>
159      </build>
160  
161      <reporting>
162          <plugins>
163              <plugin>
164                  <groupId>org.apache.maven.plugins</groupId>
165                  <artifactId>maven-javadoc-plugin</artifactId>
166                  <version>3.2.0</version>
167              </plugin>
168          </plugins>
169      </reporting>
170  
171      <repositories>
172          <repository>
173              <id>papermc-repo</id>
174              <url>https://repo.papermc.io/repository/maven-public/</url>
175          </repository>
176          <repository>
177              <id>opencollab-snapshot</id>
178              <url>https://repo.opencollab.dev/maven-snapshots/</url>
179          </repository>
180      </repositories>
181  
182      <dependencies>
183          <dependency>
184              <groupId>com.velocitypowered</groupId>
185              <artifactId>velocity-api</artifactId>
186              <version>3.1.2-SNAPSHOT</version>
187              <scope>provided</scope>
188          </dependency>
189  <!--        <dependency>-->
190  <!--            <groupId>com.velocitypowered</groupId>-->
191  <!--            <artifactId>velocity-annotation-processor</artifactId>-->
192  <!--            <version>3.1.2-SNAPSHOT</version>-->
193  <!--            <scope>provided</scope>-->
194  <!--        </dependency>-->
195  
196          <dependency>
197              <groupId>org.geysermc.floodgate</groupId>
198              <artifactId>api</artifactId>
199              <version>2.0-SNAPSHOT</version>
200              <scope>provided</scope>
201          </dependency>
202  
203          <dependency>
204              <groupId>org.postgresql</groupId>
205              <artifactId>postgresql</artifactId>
206              <version>42.4.1</version>
207          </dependency>
208      </dependencies>
209  </project>