Skip to content

Commit

Permalink
Reproduce #1023
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Feb 15, 2024
1 parent 0670620 commit cd27d73
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion examples/compress/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import io.freefair.gradle.plugins.okhttp.tasks.DownloadFile

plugins {
id "io.freefair.compress"
id "io.freefair.okhttp"
}

task foo(type: io.freefair.gradle.plugins.compress.tasks.GZip) {
Expand Down Expand Up @@ -30,5 +33,17 @@ task baz(type: io.freefair.gradle.plugins.compress.tasks.SevenZip) {
task example(type: Sync) {
dependsOn baz
from commonsCompress.sevenZipTree("$buildDir/baz.7z")
into "$buildDir/579"
into layout.buildDirectory.dir("gh-579")
}


// https://github.com/freefair/gradle-plugins/issues/1023
task downloadGh1023(type: DownloadFile) {
url = "https://github.com/upx/upx/releases/download/v4.2.2/upx-4.2.2-amd64_linux.tar.xz"
outputFile = layout.buildDirectory.file("upx-4.2.2-amd64_linux.tar.xz")
}
task gh1023(type: Sync) {
dependsOn downloadGh1023
from commonsCompress.tarXzTree(downloadGh1023.outputFile)
into layout.buildDirectory.dir("build/gh-1023")
}

0 comments on commit cd27d73

Please sign in to comment.