mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-01-25 05:18:27 -06:00
411 lines
16 KiB
XML
411 lines
16 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>pom</packaging>
|
|
|
|
<properties>
|
|
<!--Project properties-->
|
|
<revision>4.1.0-SNAPSHOT</revision>
|
|
|
|
<discal.version.name>${revision}</discal.version.name>
|
|
|
|
<!--Compiler options-->
|
|
<maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
|
|
<maven.test.skip>true</maven.test.skip>
|
|
|
|
<maven.compiler.target>16</maven.compiler.target>
|
|
<maven.compiler.source>16</maven.compiler.source>
|
|
<maven.compiler.testTarget>16</maven.compiler.testTarget>
|
|
<maven.compiler.testSource>16</maven.compiler.testSource>
|
|
|
|
<kotlin.compiler.jvmTarget>16</kotlin.compiler.jvmTarget>
|
|
<!--Disabled due to open bug: https://youtrack.jetbrains.com/issue/KT-45689 -->
|
|
<kotlin.compiler.incremental>false</kotlin.compiler.incremental>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<project.build.targetEncoding>UTF-8</project.build.targetEncoding>
|
|
|
|
<!--Versions-->
|
|
<kotlin.version>1.5.10</kotlin.version>
|
|
<kotlinx.serialization.version>1.0.1</kotlinx.serialization.version>
|
|
|
|
<discord4j.version>3.2.0-M3</discord4j.version>
|
|
<discord4j.stores.version>3.2.0</discord4j.stores.version>
|
|
|
|
<thymeleaf.version>3.0.11.RELEASE</thymeleaf.version>
|
|
<thymeleaf.springsecurity.version>3.0.4.RELEASE</thymeleaf.springsecurity.version>
|
|
<thymeleaf.layout-dialect.version>2.5.1</thymeleaf.layout-dialect.version>
|
|
|
|
<spring.version>2.5.2</spring.version>
|
|
<spring.security.version>5.5.1</spring.security.version>
|
|
<spring.session.version>2.5.1</spring.session.version>
|
|
<spring.maven-plugin.version>2.4.0</spring.maven-plugin.version>
|
|
|
|
<google.client-api.core.version>1.31.1</google.client-api.core.version>
|
|
<google.client-api.calendar.version>v3-rev411-1.25.0</google.client-api.calendar.version>
|
|
<google.client-api.oauth.version>1.31.2</google.client-api.oauth.version>
|
|
|
|
<r2dbc.mysql.version>0.8.1.RELEASE</r2dbc.mysql.version>
|
|
<r2dbc.pool.version>0.8.3.RELEASE</r2dbc.pool.version>
|
|
|
|
<netty.version.forced>4.1.56.Final</netty.version.forced>
|
|
|
|
<reactor.version.bom>2020.0.8</reactor.version.bom>
|
|
</properties>
|
|
|
|
<parent>
|
|
<groupId>org.dreamexposure</groupId>
|
|
<artifactId>DreamExposure-Parent</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>DisCal</artifactId>
|
|
<version>${revision}</version>
|
|
|
|
<modules>
|
|
<module>core</module>
|
|
<module>client</module>
|
|
<module>server</module>
|
|
<module>web</module>
|
|
</modules>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.projectreactor</groupId>
|
|
<artifactId>reactor-bom</artifactId>
|
|
<version>${reactor.version.bom}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>dreamexposure-public</id>
|
|
<url>https://emily.dreamexposure.org/artifactory/dreamexposure-public/</url>
|
|
</repository>
|
|
<repository>
|
|
<id>kotlin</id>
|
|
<url>https://kotlin.bintray.com/kotlinx</url>
|
|
</repository>
|
|
<repository>
|
|
<id>oss.sonatype.org-snapshot</id>
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
<repository>
|
|
<id>repo.spring.io-milestone</id>
|
|
<url>https://repo.spring.io/milestone</url>
|
|
</repository>
|
|
<repository>
|
|
<id>jitpack.io</id>
|
|
<url>https://jitpack.io</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<!--Kotlin-->
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
</dependency>
|
|
<!--Kotlin Serialization-->
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlinx</groupId>
|
|
<artifactId>kotlinx-serialization-json</artifactId>
|
|
<version>${kotlinx.serialization.version}</version>
|
|
<type>pom</type>
|
|
</dependency>
|
|
<!--For Annotations-->
|
|
<dependency>
|
|
<groupId>org.jetbrains</groupId>
|
|
<artifactId>annotations</artifactId>
|
|
<version>20.1.0</version>
|
|
</dependency>
|
|
<!-- slf4j-api - Need to force this for logback to work. I dunno -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>1.7.31</version>
|
|
</dependency>
|
|
<!-- Netty - forced due to stores-redis:lettuce-core giving 4.1.38 -->
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-all</artifactId>
|
|
<version>${netty.version.forced}</version>
|
|
</dependency>
|
|
<!--Forcing reactor version-->
|
|
<dependency>
|
|
<groupId>io.projectreactor</groupId>
|
|
<artifactId>reactor-core</artifactId>
|
|
</dependency>
|
|
<!--NovaUtils API-->
|
|
<dependency>
|
|
<groupId>org.dreamexposure</groupId>
|
|
<artifactId>NovaUtils</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<type>jar</type>
|
|
</dependency>
|
|
<!--Google Client API-->
|
|
<dependency>
|
|
<groupId>com.google.api-client</groupId>
|
|
<artifactId>google-api-client</artifactId>
|
|
<version>${google.client-api.core.version}</version>
|
|
<optional>false</optional>
|
|
</dependency>
|
|
<!--Google Calendar API-->
|
|
<dependency>
|
|
<groupId>com.google.apis</groupId>
|
|
<artifactId>google-api-services-calendar</artifactId>
|
|
<version>${google.client-api.calendar.version}</version>
|
|
</dependency>
|
|
<!--Google oauth client API-->
|
|
<dependency>
|
|
<groupId>com.google.oauth-client</groupId>
|
|
<artifactId>google-oauth-client-jetty</artifactId>
|
|
<version>${google.client-api.oauth.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!--r2dbc MySQL Driver-->
|
|
<dependency>
|
|
<groupId>dev.miku</groupId>
|
|
<artifactId>r2dbc-mysql</artifactId>
|
|
<version>${r2dbc.mysql.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>io.projectreactor</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>io.projectreactor.netty</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!--r2dbc pools Driver-->
|
|
<dependency>
|
|
<groupId>io.r2dbc</groupId>
|
|
<artifactId>r2dbc-pool</artifactId>
|
|
<version>${r2dbc.pool.version}</version>
|
|
</dependency>
|
|
<!--JSON API-->
|
|
<dependency>
|
|
<groupId>org.json</groupId>
|
|
<artifactId>json</artifactId>
|
|
<version>20201115</version>
|
|
</dependency>
|
|
<!--Joda Time-->
|
|
<dependency>
|
|
<groupId>joda-time</groupId>
|
|
<artifactId>joda-time</artifactId>
|
|
<version>2.10.8</version>
|
|
</dependency>
|
|
<!--OkHTTP API-->
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>okhttp</artifactId>
|
|
<version>4.9.0</version>
|
|
</dependency>
|
|
<!--Discord Webhook Library-->
|
|
<dependency>
|
|
<groupId>club.minnced</groupId>
|
|
<artifactId>discord-webhooks</artifactId>
|
|
<version>0.5.7</version>
|
|
</dependency>
|
|
<!--Spring Boot starter webflux API-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-webflux</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
<!--Spring data r2dbc for MySQL-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-r2dbc</artifactId>
|
|
<version>${spring.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!--Kotlin plugin-->
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>compile</id>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
|
|
<sourceDir>${project.basedir}/src/main/java</sourceDir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>test-compile</id>
|
|
<goals>
|
|
<goal>test-compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
|
|
<sourceDir>${project.basedir}/src/test/java</sourceDir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<compilerPlugins>
|
|
<plugin>kotlinx-serialization</plugin>
|
|
<plugin>spring</plugin>
|
|
</compilerPlugins>
|
|
<args>
|
|
<arg>-Xopt-in=kotlinx.serialization.InternalSerializationApi::class</arg>
|
|
<arg>-Xopt-in=kotlin.RequiresOptIn</arg>
|
|
</args>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-serialization</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-allopen</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven.plugin.compiler.version}</version>
|
|
<executions>
|
|
<!-- Replacing default-compile as it is treated specially by maven -->
|
|
<execution>
|
|
<id>default-compile</id>
|
|
<phase>none</phase>
|
|
</execution>
|
|
<!-- Replacing default-testCompile as it is treated specially by maven -->
|
|
<execution>
|
|
<id>default-testCompile</id>
|
|
<phase>none</phase>
|
|
</execution>
|
|
<execution>
|
|
<id>java-compile</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>java-test-compile</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>testCompile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<skip>${maven.test.skip}</skip>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<source>${maven.compiler.source}</source>
|
|
<target>${maven.compiler.target}</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>${maven.plugin.deploy.version}</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
<inherited>false</inherited>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>jenkinsBuildNumber</id>
|
|
<activation>
|
|
<property>
|
|
<name>env.BUILD_NUMBER</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<!--suppress UnresolvedMavenProperty -->
|
|
<discal.version.name>${revision}.b${env.BUILD_NUMBER}</discal.version.name>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>developmentBuildNumber</id>
|
|
<activation>
|
|
<property>
|
|
<name>!env.BUILD_NUMBER</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<discal.version.name>${revision}.d${maven.build.timestamp}</discal.version.name>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>pruneDockerImage-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>Prune images</id>
|
|
<phase>clean</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>podman</executable>
|
|
<commandlineArgs>image prune -a -f</commandlineArgs>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|