Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ jobs:
distribution: 'temurin'
- name: Make gradlew executable
run: chmod +x gradlew
- name: Run checkstyle
run: ./gradlew checkstyleMain
- name: Build with Gradle
uses: gradle/gradle-build-action@093dfe9d598ec5a42246855d09b49dc76803c005
with:
arguments: shadowJar
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.6.0
uses: actions/upload-artifact@v4
with:
name: 'Successfully build DiscordOfficer JDK${{ matrix.jdk }}'
path: build/libs/*.jar
26 changes: 2 additions & 24 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
`java-library`
application
idea
checkstyle
id("com.github.johnrengelman.shadow") version "8.1.1"
}

Expand All @@ -19,26 +18,6 @@ repositories {
maven { url = uri("https://repo.eternalcode.pl/releases") }
}

checkstyle {
toolVersion = "10.21.2"

configFile = file("${rootDir}/checkstyle/checkstyle.xml")

maxErrors = 0
maxWarnings = 0
}

// https://github.com/JabRef/jabref/pull/10812/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7R267
configurations.named("checkstyle") {
resolutionStrategy {
capabilitiesResolution {
withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:33.4.0-jre")
}
}
}
}

dependencies {
// JDA
implementation("net.dv8tion:JDA:5.3.0") {
Expand Down Expand Up @@ -85,6 +64,8 @@ dependencies {

// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation("org.apache.commons:commons-lang3:3.17.0")

implementation("com.eternalcode:eternalcode-commons-shared:1.2.0")
}

tasks.getByName<Test>("test") {
Expand All @@ -105,9 +86,6 @@ java {
tasks.shadowJar {
archiveFileName.set("DiscordOfficer v${project.version}.jar")

// dependsOn("checkstyleMain")
// dependsOn("test")

manifest {
attributes(
"Main-Class" to "com.eternalcode.discordapp.DiscordApp",
Expand Down
207 changes: 0 additions & 207 deletions checkstyle/checkstyle.xml

This file was deleted.

7 changes: 0 additions & 7 deletions checkstyle/suppressions.xml

This file was deleted.

Loading
Loading