Skip to content

Commit

Permalink
version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shchuko committed Aug 26, 2022
1 parent 6a4417a commit 329ee56
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "com.github.shchuko"
version = "1.0-SNAPSHOT"
version = "1.0"

repositories {
mavenCentral()
Expand Down Expand Up @@ -35,4 +35,24 @@ tasks.withType<KotlinCompile> {

application {
mainClass.set("com.github.shchuko.tgshellbot.Main")
}

@Suppress("DEPRECATION")
val fatJar = task("fatJar", type = Jar::class) {
baseName = "${project.name}-fat"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE

manifest {
attributes["Implementation-Title"] = "tg-shell-bot-fat"
attributes["Implementation-Version"] = version
attributes["Main-Class"] = "com.github.shchuko.tgshellbot.Main"
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
with(tasks.jar.get() as CopySpec)
}

tasks {
"build" {
dependsOn(fatJar)
}
}

0 comments on commit 329ee56

Please sign in to comment.