Updated build.gradle to use the application plugin

This commit is contained in:
RaphiMC 2023-07-01 00:57:19 +02:00
parent f28322c929
commit 79f488747e
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -1,5 +1,6 @@
plugins {
id "java"
id "application"
id "maven-publish"
id "net.kyori.blossom" version "1.3.1"
}
@ -129,6 +130,10 @@ java {
withSourcesJar()
}
application {
mainClass = "net.raphimc.viaproxy.ViaProxy"
}
jar {
dependsOn configurations.include
from {
@ -142,7 +147,7 @@ jar {
manifest {
attributes(
"Main-Class": "net.raphimc.viaproxy.ViaProxy",
"Main-Class": application.mainClass,
"Multi-Release": "true",
"Launcher-Agent-Class": "net.raphimc.viaproxy.ViaProxy"
)