Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfix: build.gradle & kotlinVersion #1642
Conversation
Not sure if it is a change in Gradle Versions; but the "BeforeEvaluate" function does NOT get called before the setting of the `kotlinVersion` in the top group. So any external properties set in `gradle.properties` are NOT set at the point we check for it. Copying the code to the top section in the `initialize` fixes the issue, however more tests will need to be done to see if we can just remove the beforeEvaluate section without any negative side effects.
|
Hi @NathanaelA,
|
|
@dev4s - That error is from a SBG and processing some JS code (wish it said which file, going to have to dig into the SBG and figure out what it failed at), which is interesting that it occurred on Travis as the code is supposed to be checked out cleanly, so not sure why it failed. The changes I did would only effect gradle loading of parameters and would have no effect on SBG processing. But thanks for your keen eye! |
|
The test version of this runtime is 7.0.1-rc1 and currently tagged |
|
I have verified BOTH sections are needed, The new "added" code allows the first section to parse the kotlinVersion if it is set. |
Fix for Ticket 781
Not sure if it was broken from a change in Gradle Versions; but the "BeforeEvaluate" function does NOT get called before the setting of the
kotlinVersionin the top group. So any external properties set ingradle.propertiesare NOT set at the point we check for it. Copying the code to the top section in theinitializefixes the issue, additional tests will need to be done to see if we can just remove the beforeEvaluate section without any negative side effects. (So leaving that for now, as worst case is it re-assigns the same value to the same key).