Skip to content

Commit 17b4f1d

Browse files
Release 1.13.18 (#537)
2 parents 0178ad8 + 0ea819a commit 17b4f1d

File tree

279 files changed

+2704
-291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+2704
-291
lines changed

.editorconfig

Lines changed: 1221 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
push:
55
tags:
66
branches:
7-
- master
8-
- development
7+
- main
8+
- dev
99

1010
jobs:
1111
docker-build:
@@ -34,7 +34,7 @@ jobs:
3434
docker image tag ghcr.io/rainbowdashlabs/reputation-bot:${{ github.sha }} ghcr.io/rainbowdashlabs/reputation-bot:${{ github.ref_name }}
3535
docker push ghcr.io/rainbowdashlabs/reputation-bot:${{ github.ref_name }}
3636
- name: Tag & Push latest image
37-
if: github.ref_name == 'master'
37+
if: github.ref_name == 'main'
3838
run: |
3939
docker image tag ghcr.io/rainbowdashlabs/reputation-bot:${{ github.sha }} ghcr.io/rainbowdashlabs/reputation-bot:latest
4040
docker push ghcr.io/rainbowdashlabs/reputation-bot:latest

.github/workflows/docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: docs
33
on:
44
push:
55
branches:
6-
- master
76
- main
87
jobs:
98
deploy:

HEADER.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* SPDX-License-Identifier: AGPL-3.0-only
3+
*
4+
* Copyright (C) RainbowDashLabs and Contributor
5+
*/

build.gradle.kts

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
plugins {
2-
id("com.github.johnrengelman.shadow") version "8.1.1"
2+
alias(libs.plugins.shadow)
3+
alias(libs.plugins.spotless)
34
java
45
`maven-publish`
56
}
67

78
group = "de.chojo"
8-
version = "1.13.17"
9+
version = "1.13.18"
910

1011
repositories {
1112
maven("https://eldonexus.de/repository/maven-public")
1213
maven("https://eldonexus.de/repository/maven-proxies")
1314
maven("https://m2.dv8tion.net/releases")
1415
}
1516

17+
spotless {
18+
java {
19+
licenseHeaderFile(rootProject.file("HEADER.txt"))
20+
target("**/*.java")
21+
}
22+
}
23+
1624
dependencies {
1725
//discord
1826
implementation("de.chojo", "cjda-util", "2.8.6+beta.11") {
@@ -21,23 +29,20 @@ dependencies {
2129

2230
// database
2331
implementation("org.postgresql", "postgresql", "42.6.0")
24-
implementation("de.chojo.sadu", "sadu-queries", "1.3.0")
25-
implementation("de.chojo.sadu", "sadu-updater", "1.3.0")
26-
implementation("de.chojo.sadu", "sadu-postgresql", "1.3.0")
27-
implementation("de.chojo.sadu", "sadu-datasource", "1.3.0")
32+
implementation(libs.bundles.sadu)
2833

2934
// Logging
30-
implementation("org.slf4j", "slf4j-api", "2.0.7")
31-
implementation("org.apache.logging.log4j", "log4j-core", "2.20.0")
32-
implementation("org.apache.logging.log4j", "log4j-slf4j2-impl", "2.20.0")
33-
implementation("club.minnced", "discord-webhooks", "0.8.2")
35+
implementation(libs.bundles.log4j)
36+
implementation("de.chojo", "log-util", "1.0.1") {
37+
exclude("org.apache.logging.log4j")
38+
}
3439

35-
implementation("org.knowm.xchart", "xchart", "3.8.4")
40+
implementation("org.knowm.xchart", "xchart", "3.8.5")
3641

3742
// unit testing
38-
testImplementation(platform("org.junit:junit-bom:5.9.3"))
43+
testImplementation(platform("org.junit:junit-bom:5.10.0"))
3944
testImplementation("org.junit.jupiter", "junit-jupiter")
40-
testImplementation("org.knowm.xchart", "xchart", "3.8.4")
45+
testImplementation("org.knowm.xchart", "xchart", "3.8.5")
4146
}
4247

4348
java {

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM eclipse-temurin:19-alpine as build
1+
FROM gradle:jdk19-alpine as build
22

33
COPY . .
4-
RUN ./gradlew clean build --no-daemon
4+
RUN gradle clean build --no-daemon
55

66
FROM eclipse-temurin:19-alpine as runtime
77

88
WORKDIR /app
99

10-
COPY --from=build /build/libs/rep-bot-*-all.jar bot.jar
10+
COPY --from=build /home/gradle/build/libs/rep-bot-*-all.jar bot.jar
1111

1212
ENTRYPOINT ["java", "-Dbot.config=config/config.json", "-Dlog4j.configurationFile=config/log4j2.xml", "-Dcjda.localisation.error.name=false", "-jar" , "bot.jar"]

docker/config/log4j2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Configuration status="WARN" shutdownHook="disable" packages="de.chojo.repbot.util">
2+
<Configuration status="WARN" shutdownHook="disable" packages="de.chojo.logutil.appender">
33
<Appenders>
44
<!-- Console logger for debugging (prints stacktrace) -->
55
<Console name="ConsoleDebug" target="SYSTEM_OUT">

gradle/wrapper/gradle-wrapper.jar

1.27 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,13 @@ location of your Java installation."
130130
fi
131131
else
132132
JAVACMD=java
133-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
133+
if ! command -v java >/dev/null 2>&1
134+
then
135+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134136
135137
Please set the JAVA_HOME variable in your environment to match the
136138
location of your Java installation."
139+
fi
137140
fi
138141

139142
# Increase the maximum file descriptors if we can.

0 commit comments

Comments
 (0)