The gradle-kotlin-dsl-extensions.jar is reproducible to allow for downstream compilation tasks (when the kotlin-dsl plugin is applied) and script compilation outputs to be reused and relocatable.
Observed between a Windows and a macos builds.
Those are not two linux agents, this is a Windows machine and my macbook: https://e.grdev.net/c/sprbsii6bnmjs/n5scix7scxwvy/infrastructure#operating-system
@wolfs thanks, updated the issue
Here is another instance of this problem from our CI agents, one on Windows and one one Linux: https://e.grdev.net/c/y66cprpcpn35u/2mohev2rc3yv2/task-inputs?toggled=WzJd&toggledFileChanges=WyI2ajZlNGlhdDV3Z3JlLWZpbGUtaW5wdXQtMCJd#change-6j6e4iat5wgre-0-0
I had a look at the jars, and it looks like line endings are the culprit. I guess we shouldn't use appendln here: https://github.com/gradle/kotlin-dsl/blob/9d4f2465571b3b8c30a3009951a85824018ca36f/subprojects/provider/src/main/kotlin/org/gradle/kotlin/dsl/codegen/ApiExtensionsGenerator.kt#L269-L293
I guess we should get rid of all usages of appendln in the generator source code.
Closing as done in #1288
Most helpful comment
I guess we should get rid of all usages of
appendlnin the generator source code.