} iosX64 { /* Apple iOS simulator on x86_64 platforms */ compilations { val old by compilations.creating { defaultSourceSet { languageSettings { languageVersion = "1.5" } } } tasks.register<Exec>("old") { println("Compiling for an old version") } } }