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: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
- name: Set up JDK 25
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 21
java-version: 25
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
10 changes: 10 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions .idea/modules/dev.robothanzo.werewolf.WerewolfHelper.main.iml

This file was deleted.

17 changes: 15 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
java
id("org.springframework.boot") version "4.0.2"
id("io.spring.dependency-management") version "1.1.7"
kotlin("jvm") version "2.3.0"
kotlin("plugin.spring") version "2.3.0"
}

group = "dev.robothanzo.werewolf"
Expand All @@ -20,11 +22,15 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.mongodb:mongodb-spring-session:4.0.0-rc1")


// Kotlin
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")

// Discord
implementation("net.dv8tion:JDA:6.3.0")
implementation("club.minnced:discord-webhooks:0.8.4")
implementation("com.github.RobotHanzo:JDAInteractions:v0.1.4")
implementation("com.github.RobotHanzo:JDAInteractions:0.2.0")
implementation("com.github.Mokulu:discord-oauth2-api:1.0.4")

// JDA Audio supplements
Expand Down Expand Up @@ -54,6 +60,13 @@ tasks {
options.encoding = Charsets.UTF_8.name()
}

compileKotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjsr305=strict")
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_25)
}
}

bootJar {
mainClass.set("dev.robothanzo.werewolf.WerewolfApplication")
}
Expand Down
26 changes: 26 additions & 0 deletions build_output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/C:/Users/Nathan%20Lee/.gradle/wrapper/dists/gradle-9.3.1-bin/23ovyewtku6u96viwx3xl3oks/gradle-9.3.1/lib/native-platform-0.22-milestone-29.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

Starting a Gradle Daemon (subsequent builds will be faster)
> Task :checkKotlinGradlePluginConfigurationErrors SKIPPED

> Task :compileKotlin FAILED
e: file:///C:/Users/Nathan%20Lee/Coding%20Projects/Java%20Projects/WerewolfHelper/src/main/kotlin/dev/robothanzo/werewolf/commands/Poll.kt:45:17 Argument type mismatch: actual type is 'Runnable', but 'Function0<Unit>?' was expected.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

BUILD FAILED in 35s
1 actionable task: 1 executed
3 changes: 0 additions & 3 deletions src/dashboard/src/features/game/hooks/useGameState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ export const useGameState = (guildId: string | undefined, user: User | null) =>

const [showSessionExpired, setShowSessionExpired] = useState(false);

// Helpers to update overlay
const setOverlayVisible = (visible: boolean) => setOverlayState(prev => ({...prev, visible}));

// Helper to map session data to GameState players
const mapSessionToPlayers = (sessionData: any): Player[] => {
return sessionData.players.map((player: any) => ({
Expand Down
120 changes: 0 additions & 120 deletions src/main/java/dev/robothanzo/werewolf/WerewolfApplication.java

This file was deleted.

56 changes: 0 additions & 56 deletions src/main/java/dev/robothanzo/werewolf/audio/Audio.java

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions src/main/java/dev/robothanzo/werewolf/commands/DurationMapper.java

This file was deleted.

Loading
Loading