build: Add Gradle performance properties, switch several dependencies to compileOnly, and remove Exposed and PostgreSQL dependencies.
This commit is contained in:
parent
b19d9cf17a
commit
7ca1092d6d
|
|
@ -14,27 +14,18 @@ repositories {
|
||||||
maven("https://repo.papermc.io/repository/maven-public/")
|
maven("https://repo.papermc.io/repository/maven-public/")
|
||||||
}
|
}
|
||||||
|
|
||||||
val exposedVersion = "1.0.0-rc-4"
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT")
|
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")
|
compileOnly("net.kyori:adventure-api:4.25.0")
|
||||||
implementation("net.kyori:adventure-text-minimessage:4.25.0")
|
compileOnly("net.kyori:adventure-text-minimessage:4.25.0")
|
||||||
|
|
||||||
compileOnly("net.hareworks.hcu:hcu-core")
|
compileOnly("net.hareworks.hcu:hcu-core")
|
||||||
compileOnly("net.hareworks:kommand-lib")
|
compileOnly("net.hareworks:kommand-lib")
|
||||||
compileOnly("net.hareworks:permits-lib")
|
compileOnly("net.hareworks:permits-lib")
|
||||||
|
|
||||||
implementation("org.postgresql:postgresql:42.7.8")
|
compileOnly("com.michael-bull.kotlin-result:kotlin-result:2.1.0")
|
||||||
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")
|
|
||||||
}
|
}
|
||||||
tasks {
|
tasks {
|
||||||
withType<Jar> {
|
withType<Jar> {
|
||||||
|
|
|
||||||
7
gradle.properties
Normal file
7
gradle.properties
Normal file
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -48,6 +48,7 @@ tasks {
|
||||||
exclude(dependency("org.jetbrains.exposed:exposed-jdbc"))
|
exclude(dependency("org.jetbrains.exposed:exposed-jdbc"))
|
||||||
exclude(dependency("org.jetbrains.exposed:exposed-kotlin-datetime"))
|
exclude(dependency("org.jetbrains.exposed:exposed-kotlin-datetime"))
|
||||||
exclude(dependency("org.postgresql:postgresql"))
|
exclude(dependency("org.postgresql:postgresql"))
|
||||||
|
exclude(dependency("com.michael-bull.kotlin-result:kotlin-result"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user