Browse Source

Add application plugin

master
czar 4 months ago
parent
commit
cba063ed35
Signed by: czar GPG Key ID: 2DBA9558E9277C37
  1. 17
      build.gradle
  2. 3
      src/main/java/META-INF/MANIFEST.MF

17
build.gradle

@ -4,7 +4,7 @@
plugins {
id 'java'
id 'maven-publish'
id 'application'
}
repositories {
@ -23,10 +23,15 @@ version = '1.0-SNAPSHOT'
description = 'ircd'
java.sourceCompatibility = JavaVersion.VERSION_1_8
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
jar {
manifest {
attributes(
'Main-Class': 'st.kalli.ircd.Server'
)
}
}
application {
mainClassName = 'st.kalli.ircd.Server'
}

3
src/main/java/META-INF/MANIFEST.MF

@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: st.kalli.ircd.Server
Loading…
Cancel
Save