mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
[updater] adding artifact building task to the Gradle project
GitOrigin-RevId: 53f0e5616660df870168c0e88e05c848f25fea88
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f6b28d85bd
commit
5616781c6d
@@ -29,3 +29,28 @@ java {
|
|||||||
tasks.test {
|
tasks.test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register<Jar>("fatJar") {
|
||||||
|
archiveFileName = "updater-full.jar"
|
||||||
|
group = "build"
|
||||||
|
manifest.attributes["Main-Class"] = "com.intellij.updater.Bootstrap"
|
||||||
|
manifest.attributes["Patcher-Version"] = "3.0"
|
||||||
|
from(sourceSets.main.get().output)
|
||||||
|
dependsOn(configurations.runtimeClasspath)
|
||||||
|
from(configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map(::zipTree))
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
|
exclude(
|
||||||
|
"module-info.class",
|
||||||
|
"META-INF/",
|
||||||
|
"com/sun/jna/aix-*/",
|
||||||
|
"com/sun/jna/freebsd-*/",
|
||||||
|
"com/sun/jna/openbsd-*/",
|
||||||
|
"com/sun/jna/sunos-*/",
|
||||||
|
"com/sun/jna/*-arm*/",
|
||||||
|
"com/sun/jna/*-loong*/",
|
||||||
|
"com/sun/jna/*-mips*/",
|
||||||
|
"com/sun/jna/*-ppc*/",
|
||||||
|
"com/sun/jna/*-s390*/",
|
||||||
|
"com/sun/jna/*-x86/"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user