actually make the jar runnable lol

This commit is contained in:
Chayapak 2023-06-22 19:37:17 +07:00
parent 38b67298dc
commit 1b47406dfb

View file

@ -3,9 +3,11 @@
*/ */
plugins { plugins {
id 'java'
id 'java-library' id 'java-library'
id 'maven-publish' id 'maven-publish'
id 'io.freefair.lombok' version '8.0.1' id 'io.freefair.lombok' version '8.0.1'
id 'com.github.johnrengelman.shadow' version '8.1.1'
} }
group = 'land.chipmunk.chayapak' group = 'land.chipmunk.chayapak'
@ -44,6 +46,12 @@ dependencies {
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.20.0' implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.20.0'
} }
jar {
manifest {
attributes 'Main-Class': 'land.chipmunk.chayapak.chomens_bot.Main'
}
}
publishing { publishing {
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {