Sebastian Schuberth
03/13/2024, 3:01 PMval javaLanguageVersion: Int by project
to "just work" if the named string property can be turned into an int, and only fail the build if it doesn't. But it does not seem to work at all, and I always need to use String
as a type here it seems. Is this already tracked as some issue that I can upvote?Vampire
03/13/2024, 3:59 PMgradle.properties
or -P
or similar are simply `String`s .
Not sure whether it would be a good idea to auto-transform.
Actually, I'd anyway set this in the version catalog instead.
And additionally, the receiver of that value most probably supports `String`s in this specific case. πSebastian Schuberth
03/13/2024, 4:03 PMAnd additionally, the receiver of that value most probably supports `String`s in this specific case. πIndeed it does (as I had also found out after writing my post) π
Vampire
03/14/2024, 1:55 PMVampire
03/14/2024, 1:55 PMSebastian Schuberth
03/14/2024, 1:58 PMThis is the intended behavior and thereβs no plan to change it. [...] There is no automatic conversion, you can do the conversion in your script.Oh well, with that argument you don't need any convenience functions at all. Thanks anyway!
Vampire
03/14/2024, 2:05 PM