Skip to content

Commit 53db6af

Browse files
committed
Fix Gradle 8 compatibility issues
- Add sourcesJar dependency on downloadVsWhere to fix task dependency validation - Update vswhere.exe download URL from 2.8.4 to 3.1.7
1 parent 2dc92a2 commit 53db6af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ tasks.register('generateZip', Zip) {
7373
}
7474

7575
tasks.register('downloadVsWhere', de.undercouch.gradle.tasks.download.Download) {
76-
src 'https://github.com/Microsoft/vswhere/releases/download/2.8.4/vswhere.exe'
76+
src 'https://github.com/Microsoft/vswhere/releases/download/3.1.7/vswhere.exe'
7777
dest "$temporaryDir/vswhere.exe"
7878
}
7979

@@ -189,3 +189,9 @@ afterEvaluate {
189189

190190
// MSBuild-specific: Process resources depends on vswhere download
191191
processResources.dependsOn downloadVsWhere
192+
// sourcesJar also needs downloadVsWhere since it reads from sourceSets
193+
afterEvaluate {
194+
tasks.named('sourcesJar').configure {
195+
dependsOn downloadVsWhere
196+
}
197+
}

0 commit comments

Comments
 (0)