Skip to content

Commit

Permalink
update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
NastasiyaT committed Oct 22, 2023
1 parent 6d0a5c7 commit daedcb3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ tasks.jacocoTestReport {
}
}

tasks.withType<Jar>().configureEach {
manifest {
attributes["Main-Class"] = "hexlet.code.App"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
//tasks.withType<Jar>().configureEach {
// manifest {
// attributes["Main-Class"] = "hexlet.code.App"
// }
// duplicatesStrategy = DuplicatesStrategy.EXCLUDE
// from(sourceSets.main.get().output)
// dependsOn(configurations.runtimeClasspath)
// from({
// configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
// })
//}

0 comments on commit daedcb3

Please sign in to comment.