mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-01-23 20:38:27 -06:00
172 lines
6.3 KiB
XML
172 lines
6.3 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>
|
|
<packaging>jar</packaging>
|
|
|
|
<parent>
|
|
<groupId>org.dreamexposure</groupId>
|
|
<artifactId>DisCal</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
<groupId>org.dreamexposure.discal</groupId>
|
|
<artifactId>server</artifactId>
|
|
<version>${revision}</version>
|
|
|
|
<dependencies>
|
|
<!--DisCal Core-->
|
|
<dependency>
|
|
<groupId>org.dreamexposure.discal</groupId>
|
|
<artifactId>core</artifactId>
|
|
<version>${revision}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!--FlywayDB API for Database Migrations-->
|
|
<dependency>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-core</artifactId>
|
|
<version>7.11.2</version>
|
|
</dependency>
|
|
<!--MySQL Driver-->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>8.0.25</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<!--top.gg API library-->
|
|
<dependency>
|
|
<groupId>org.discordbots</groupId>
|
|
<artifactId>DBL-Java-Library</artifactId>
|
|
<version>2.0.1</version>
|
|
</dependency>
|
|
<!--Spring Session API-->
|
|
<dependency>
|
|
<groupId>org.springframework.session</groupId>
|
|
<artifactId>spring-session-data-redis</artifactId>
|
|
<version>${spring.session.version}</version>
|
|
</dependency>
|
|
<!--Spring Security Core-->
|
|
<dependency>
|
|
<groupId>org.springframework.security</groupId>
|
|
<artifactId>spring-security-core</artifactId>
|
|
<version>${spring.security.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!--Spring Security Web-->
|
|
<dependency>
|
|
<groupId>org.springframework.security</groupId>
|
|
<artifactId>spring-security-web</artifactId>
|
|
<version>${spring.security.version}</version>
|
|
</dependency>
|
|
<!--Spring r2dbc-->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-r2dbc</artifactId>
|
|
<version>${spring.r2dbc.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
<artifactId>jackson-module-kotlin</artifactId>
|
|
<version>2.12.4</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>DisCal-Server</finalName>
|
|
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>application.properties</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>${maven.plugin.shade.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>${maven.plugin.jar.version}</version>
|
|
<configuration>
|
|
<archive>
|
|
<manifest>
|
|
<addClasspath>true</addClasspath>
|
|
<mainClass>org.dreamexposure.discal.server.DisCalServer</mainClass>
|
|
</manifest>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${spring.maven-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>${maven.plugin.deploy.version}</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>buildDockerImage-JenkinsOnly</id>
|
|
<activation>
|
|
<property>
|
|
<name>env.BUILD_NUMBER</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>${maven.plugin.exec.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>Build and Push Docker Image</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>sh</executable>
|
|
<commandlineArgs>build-image.sh ${revision}</commandlineArgs>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|