Skip to content

Commit 457e9de

Browse files
committed
Sync Gradle across subprojects in assemble task to ensure standalone build compatibility
1 parent d1c489c commit 457e9de

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,16 @@ kotlinPublications {
319319
}
320320
}
321321
}
322+
323+
tasks.assemble {
324+
// subprojects use the Gradle version from the root project, so let's sync them to ensure standalone version will build as well.
325+
doLast {
326+
val source = file("gradle/wrapper/gradle-wrapper.properties")
327+
listOf("examples/android-example", "examples/kotlin-dataframe-plugin-example").forEach { sub ->
328+
val target = file("$sub/gradle/wrapper/gradle-wrapper.properties")
329+
if (source.readText() != target.readText()) {
330+
source.copyTo(target, overwrite = true)
331+
}
332+
}
333+
}
334+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Fri Jul 25 14:30:49 AMT 2025
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)