added shadow jar

This commit is contained in:
UnrealValentin
2021-06-02 21:59:10 +02:00
parent cfad5c0611
commit cd5321af75
6 changed files with 107 additions and 93 deletions

View File

@@ -1,6 +1,8 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.5.10'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.5.10'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
group 'org.wulkanat'
@@ -41,16 +43,4 @@ jar {
}
}
task fatJar(type: Jar) {
baseName = project.name + '-all'
from((configurations.compile.findAll { !it.path.endsWith(".pom") }).collect {
it.isDirectory() ? it : zipTree(it)
})
with jar
manifest {
attributes 'Main-Class': 'org.wulkanat.MainKt',
'Implementation-Version': version
}
}
apply plugin: 'kotlinx-serialization'