Skip to content

Commit

Permalink
Update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
Hummel009 authored Nov 17, 2023
1 parent da0939f commit 1bd30d2
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions Lab04/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import java.time.format.DateTimeFormatter

plugins {
id("org.jetbrains.kotlin.jvm") version "1.9.20"
id("application")
}

group = "hummel"
Expand All @@ -13,34 +12,8 @@ repositories {
mavenCentral()
}

val embed: Configuration by configurations.creating

dependencies {
embed("org.jetbrains.kotlin:kotlin-stdlib:1.9.20")
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

application {
mainClass = "hummel.MainKt"
}

tasks {
jar {
manifest {
attributes(
mapOf(
"Main-Class" to "hummel.MainKt"
)
)
}
from(embed.map {
if (it.isDirectory) it else zipTree(it)
})
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}

0 comments on commit 1bd30d2

Please sign in to comment.