mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-14 19:15:08 -05:00
Updated build.gradle to use the application plugin
This commit is contained in:
parent
f28322c929
commit
79f488747e
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
id "java"
|
id "java"
|
||||||
|
id "application"
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
id "net.kyori.blossom" version "1.3.1"
|
id "net.kyori.blossom" version "1.3.1"
|
||||||
}
|
}
|
||||||
|
@ -129,6 +130,10 @@ java {
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
|
mainClass = "net.raphimc.viaproxy.ViaProxy"
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
dependsOn configurations.include
|
dependsOn configurations.include
|
||||||
from {
|
from {
|
||||||
|
@ -142,7 +147,7 @@ jar {
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes(
|
attributes(
|
||||||
"Main-Class": "net.raphimc.viaproxy.ViaProxy",
|
"Main-Class": application.mainClass,
|
||||||
"Multi-Release": "true",
|
"Multi-Release": "true",
|
||||||
"Launcher-Agent-Class": "net.raphimc.viaproxy.ViaProxy"
|
"Launcher-Agent-Class": "net.raphimc.viaproxy.ViaProxy"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue