mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-01-24 12:58:27 -06:00
243 lines
9.4 KiB
XML
243 lines
9.4 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>
|
|
|
|
<properties>
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
<maven.compiler.testTarget>1.8</maven.compiler.testTarget>
|
|
<maven.compiler.testSource>1.8</maven.compiler.testSource>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<project.build.targetEncoding>UTF-8</project.build.targetEncoding>
|
|
</properties>
|
|
|
|
<parent>
|
|
<groupId>org.dreamexposure</groupId>
|
|
<artifactId>DisCal</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
<groupId>org.dreamexposure.discal</groupId>
|
|
<artifactId>web</artifactId>
|
|
<version>${revision}</version>
|
|
|
|
<dependencies>
|
|
<!--DisCal Core-->
|
|
<dependency>
|
|
<groupId>org.dreamexposure.discal</groupId>
|
|
<artifactId>core</artifactId>
|
|
<version>${revision}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!--Thymeleaf-->
|
|
<dependency>
|
|
<groupId>org.thymeleaf</groupId>
|
|
<artifactId>thymeleaf</artifactId>
|
|
<version>${thymeleaf.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!--Thymeleaf 5 for Spring-->
|
|
<dependency>
|
|
<groupId>org.thymeleaf</groupId>
|
|
<artifactId>thymeleaf-spring5</artifactId>
|
|
<version>${thymeleaf.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!--Thymeleaf dialect-->
|
|
<dependency>
|
|
<groupId>nz.net.ultraq.thymeleaf</groupId>
|
|
<artifactId>thymeleaf-layout-dialect</artifactId>
|
|
<version>${thymeleaf.layout-dialect.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!--Thymeleaf spring security-->
|
|
<dependency>
|
|
<groupId>org.thymeleaf.extras</groupId>
|
|
<artifactId>thymeleaf-extras-springsecurity5</artifactId>
|
|
<version>${thymeleaf.springsecurity.version}</version>
|
|
</dependency>
|
|
<!--Spring Boot starter Thymeleaf API-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
<version>${spring.version}</version>
|
|
<scope>compile</scope>
|
|
</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>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>DisCal-Web</finalName>
|
|
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/html</directory>
|
|
<filtering>false</filtering>
|
|
</resource>
|
|
<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.web.DisCalWeb</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.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>${maven.plugin.exec.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>NPM project install</id>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>npm</executable>
|
|
<commandlineArgs>install</commandlineArgs>
|
|
<workingDirectory>..</workingDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>Compile Website Styles</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>gulp</executable>
|
|
<commandlineArgs>build</commandlineArgs>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>Compile Website Javascript</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>webpack</executable>
|
|
<workingDirectory>..</workingDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>Clean Website</id>
|
|
<phase>clean</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>gulp</executable>
|
|
<commandlineArgs>clean:all</commandlineArgs>
|
|
</configuration>
|
|
</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>
|