Skip to content

Commit

Permalink
feat: save dash.jar in the root project for easy re-use
Browse files Browse the repository at this point in the history
  • Loading branch information
borisrizov-zf committed Jun 12, 2024
1 parent b64cc56 commit 98747c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions miw/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ tasks.register('dashDownload', Download) {
description = 'Download the Dash License Tool standalone jar'
group = 'License'
src 'https://repo.eclipse.org/service/local/artifact/maven/redirect?r=dash-licenses&g=org.eclipse.dash&a=org.eclipse.dash.licenses&v=LATEST'
dest layout.projectDirectory.file('dash.jar')
dest rootProject.file('dash.jar')
// will not replace an existing file. If you know you need a new version
// then manually delete the file yourself, or run `dashClean`
overwrite false
Expand All @@ -142,7 +142,7 @@ tasks.register('dashClean') {
description = "Clean all files used by the 'License' group"
group = 'License'
logger.lifecycle("Removing 'dash.jar'")
file('dash.jar').delete()
rootProject.file('dash.jar').delete()
logger.lifecycle("Removing 'deps.txt'")
file('deps.txt').delete()
}
Expand Down Expand Up @@ -183,7 +183,7 @@ tasks.register('dashLicenseCheck', JavaExec) { dashLicenseCheck ->
dashLicenseCheck.dependsOn('dashDownload')
dashLicenseCheck.dependsOn('dashDependencies')
doFirst {
classpath = files('dash.jar')
classpath = rootProject.files('dash.jar')
// docs: https://eclipse-tractusx.github.io/docs/release/trg-7/trg-7-04
args('-project', 'automotive.tractusx', '-summary', 'DEPENDENCIES', 'deps.txt')
}
Expand Down

0 comments on commit 98747c8

Please sign in to comment.