From 7ca1092d6d1060d9c39103a5dad97e14d8ce64ab Mon Sep 17 00:00:00 2001 From: Kariya Date: Sun, 7 Dec 2025 17:53:54 +0000 Subject: [PATCH] build: Add Gradle performance properties, switch several dependencies to compileOnly, and remove Exposed and PostgreSQL dependencies. --- build.gradle.kts | 17 ++++------------- gradle.properties | 7 +++++++ hcu-core/build.gradle.kts | 1 + 3 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 gradle.properties diff --git a/build.gradle.kts b/build.gradle.kts index 56ace49..3b72118 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,27 +14,18 @@ repositories { maven("https://repo.papermc.io/repository/maven-public/") } -val exposedVersion = "1.0.0-rc-4" - dependencies { compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT") - implementation("org.jetbrains.kotlin:kotlin-stdlib") + compileOnly("org.jetbrains.kotlin:kotlin-stdlib") - implementation("net.kyori:adventure-api:4.25.0") - implementation("net.kyori:adventure-text-minimessage:4.25.0") + compileOnly("net.kyori:adventure-api:4.25.0") + compileOnly("net.kyori:adventure-text-minimessage:4.25.0") compileOnly("net.hareworks.hcu:hcu-core") compileOnly("net.hareworks:kommand-lib") compileOnly("net.hareworks:permits-lib") - implementation("org.postgresql:postgresql:42.7.8") - implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0") - implementation("org.jetbrains.exposed:exposed-core:$exposedVersion") - implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion") - implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion") - implementation("org.jetbrains.exposed:exposed-kotlin-datetime:$exposedVersion") - implementation("com.michael-bull.kotlin-result:kotlin-result:2.1.0") + compileOnly("com.michael-bull.kotlin-result:kotlin-result:2.1.0") } tasks { withType { diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..ba9ecbe --- /dev/null +++ b/gradle.properties @@ -0,0 +1,7 @@ +org.gradle.configuration-cache=true +org.gradle.parallel=true +org.gradle.caching=true +org.gradle.daemon=false + +org.gradle.configuration-cache=true + diff --git a/hcu-core/build.gradle.kts b/hcu-core/build.gradle.kts index 2b726dd..b5b676c 100644 --- a/hcu-core/build.gradle.kts +++ b/hcu-core/build.gradle.kts @@ -48,6 +48,7 @@ tasks { exclude(dependency("org.jetbrains.exposed:exposed-jdbc")) exclude(dependency("org.jetbrains.exposed:exposed-kotlin-datetime")) exclude(dependency("org.postgresql:postgresql")) + exclude(dependency("com.michael-bull.kotlin-result:kotlin-result")) } } }