Interface KotlinMultiplatformSourceSetConventions

    • Constructor Detail

    • Method Detail

      • invoke

         Unit invoke(NamedDomainObjectProvider<KotlinSourceSet> $self, Function1<KotlinSourceSet, Unit> configure)

        Configure KotlinSourceSet provider with configure code block.

        Sample:

        kotlin {
           iosX64()
           iosArm64()
        
           sourceSets {
             nativeMain { /* this: KotlinSourceSet */
                     kotlin.srcDir("src/native")
                 }
               }
            }
        Since:

        1.9.20

      • languageSettings

         Unit languageSettings(NamedDomainObjectProvider<KotlinSourceSet> $self, Function1<LanguageSettingsBuilder, Unit> configure)

        Configure KotlinSourceSet language settings with configure code block.

        Sample:

        kotlin {
           jvm()
           iosX64()
           iosArm64()
        
           sourceSets {
             commonMain.languageSettings {
                 progressiveMode = true
             }
           }
        }
        Since:

        1.9.20

      • getCommonMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getCommonMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           jvm()
           iosX64()
        
           sourceSets {
             commonMain.dependencies {
                 // Add commonMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getCommonTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getCommonTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           jvm()
           iosX64()
        
           sourceSets {
             commonTest.dependencies {
                 // Add commonTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getNativeMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getNativeMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared native targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxX64()
           iosX64()
        
           sourceSets {
             nativeMain.dependencies {
                 // Add nativeMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getNativeTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getNativeTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared native targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxX64()
           iosX64()
        
           sourceSets {
             nativeTest.dependencies {
                 // Add nativeTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getAppleMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAppleMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared Apple targets (ios, macos, watchos, tvos). Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosX64()
           macosX64()
        
           sourceSets {
             appleMain.dependencies {
                 // Add appleMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getAppleTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAppleTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared Apple targets (ios, macos, watchos, tvos). Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosX64()
           macosX64()
        
           sourceSets {
             appleTest.dependencies {
                 // Add appleTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getIosMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getIosMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared iOS targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosX64()
           iosArm64()
        
           sourceSets {
             iosMain.dependencies {
                 // Add iosMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getIosTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getIosTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared iOS targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosX64()
           iosArm64()
        
           sourceSets {
             iosTest.dependencies {
                 // Add iosTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getTvosMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getTvosMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared tvOS targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           tvosX64()
           tvosArm64()
        
           sourceSets {
             tvosMain.dependencies {
                 // Add tvosMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getTvosTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getTvosTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared tvOS targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           tvosX64()
           tvosArm64()
        
           sourceSets {
             tvosTest.dependencies {
                 // Add tvosTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getWatchosMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared watchOS targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosX64()
           watchosArm64()
        
           sourceSets {
             watchosMain.dependencies {
                 // Add watchosMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getWatchosTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared watchOS targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosX64()
           watchosArm64()
        
           sourceSets {
             watchosTest.dependencies {
                 // Add watchosTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getMacosMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMacosMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared macOS targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           macosX64()
           macosArm64()
        
           sourceSets {
             macosMain.dependencies {
                 // Add macosMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getMacosTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMacosTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared macOS targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           macosX64()
           macosArm64()
        
           sourceSets {
             macosTest.dependencies {
                 // Add macosTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getLinuxMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getLinuxMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared Linux targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxX64()
           linuxArm64()
        
           sourceSets {
             linuxMain.dependencies {
                 // Add linuxMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getLinuxTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getLinuxTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared Linux targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxX64()
           linuxArm64()
        
           sourceSets {
             linuxTest.dependencies {
                 // Add linuxTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getMingwMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMingwMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared Mingw targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           mingwX64()
           mingwX86()
        
           sourceSets {
             mingwMain.dependencies {
                 // Add mingwMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getMingwTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMingwTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared Mingw targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           mingwX64()
           mingwX86()
        
           sourceSets {
             mingwTest.dependencies {
                 // Add mingwTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getAndroidNativeMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared Android Native targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeX64()
           androidNativeArm64()
        
           sourceSets {
             androidNativeMain.dependencies {
                 // Add androidNativeMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getAndroidNativeTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for shared kotlin Source Set between all declared Android Native targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeX64()
           androidNativeArm64()
        
           sourceSets {
             androidNativeTest.dependencies {
                 // Add androidNativeTest dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getJsMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getJsMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of js target. Declare js target to access this source set. If js target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           js() // Target is declared, jsMain source set is created
        
           sourceSets {
             jsMain.dependencies {
                 // Add jsMain dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getJsTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getJsTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of js target. Declare js target to access this source set. If js target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           js() // Target is declared, jsTest source set is created
        
           sourceSets {
             jsTest.dependencies {
                 // Add jsTest dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getJvmMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getJvmMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of jvm target. Declare jvm target to access this source set. If jvm target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           jvm() // Target is declared, jvmMain source set is created
        
           sourceSets {
             jvmMain.dependencies {
                 // Add jvmMain dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getJvmTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getJvmTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of jvm target. Declare jvm target to access this source set. If jvm target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           jvm() // Target is declared, jvmTest source set is created
        
           sourceSets {
             jvmTest.dependencies {
                 // Add jvmTest dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWasmJsMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWasmJsMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of wasmJs target. Declare wasmJs target to access this source set. If wasmJs target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           wasmJs() // Target is declared, wasmJsMain source set is created
        
           sourceSets {
             wasmJsMain.dependencies {
                 // Add wasmJsMain dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWasmJsTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWasmJsTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of wasmJs target. Declare wasmJs target to access this source set. If wasmJs target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           wasmJs() // Target is declared, wasmJsTest source set is created
        
           sourceSets {
             wasmJsTest.dependencies {
                 // Add wasmJsTest dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWasmWasiMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWasmWasiMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of wasmWasi target. Declare wasmWasi target to access this source set. If wasmWasi target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           wasmWasi() // Target is declared, wasmWasiMain source set is created
        
           sourceSets {
             wasmWasiMain.dependencies {
                 // Add wasmWasiMain dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWasmWasiTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWasmWasiTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of wasmWasi target. Declare wasmWasi target to access this source set. If wasmWasi target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           wasmWasi() // Target is declared, wasmWasiTest source set is created
        
           sourceSets {
             wasmWasiTest.dependencies {
                 // Add wasmWasiTest dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidNativeArm32Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeArm32Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of androidNativeArm32 target. Declare androidNativeArm32 target to access this source set. If androidNativeArm32 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeArm32() // Target is declared, androidNativeArm32Main source set is created
        
           sourceSets {
             androidNativeArm32Main.dependencies {
                 // Add androidNativeArm32Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidNativeArm32Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeArm32Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of androidNativeArm32 target. Declare androidNativeArm32 target to access this source set. If androidNativeArm32 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeArm32() // Target is declared, androidNativeArm32Test source set is created
        
           sourceSets {
             androidNativeArm32Test.dependencies {
                 // Add androidNativeArm32Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidNativeArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of androidNativeArm64 target. Declare androidNativeArm64 target to access this source set. If androidNativeArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeArm64() // Target is declared, androidNativeArm64Main source set is created
        
           sourceSets {
             androidNativeArm64Main.dependencies {
                 // Add androidNativeArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidNativeArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of androidNativeArm64 target. Declare androidNativeArm64 target to access this source set. If androidNativeArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeArm64() // Target is declared, androidNativeArm64Test source set is created
        
           sourceSets {
             androidNativeArm64Test.dependencies {
                 // Add androidNativeArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidNativeX64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeX64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of androidNativeX64 target. Declare androidNativeX64 target to access this source set. If androidNativeX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeX64() // Target is declared, androidNativeX64Main source set is created
        
           sourceSets {
             androidNativeX64Main.dependencies {
                 // Add androidNativeX64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidNativeX64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeX64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of androidNativeX64 target. Declare androidNativeX64 target to access this source set. If androidNativeX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeX64() // Target is declared, androidNativeX64Test source set is created
        
           sourceSets {
             androidNativeX64Test.dependencies {
                 // Add androidNativeX64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidNativeX86Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeX86Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of androidNativeX86 target. Declare androidNativeX86 target to access this source set. If androidNativeX86 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeX86() // Target is declared, androidNativeX86Main source set is created
        
           sourceSets {
             androidNativeX86Main.dependencies {
                 // Add androidNativeX86Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidNativeX86Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidNativeX86Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of androidNativeX86 target. Declare androidNativeX86 target to access this source set. If androidNativeX86 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidNativeX86() // Target is declared, androidNativeX86Test source set is created
        
           sourceSets {
             androidNativeX86Test.dependencies {
                 // Add androidNativeX86Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getIosArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getIosArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of iosArm64 target. Declare iosArm64 target to access this source set. If iosArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosArm64() // Target is declared, iosArm64Main source set is created
        
           sourceSets {
             iosArm64Main.dependencies {
                 // Add iosArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getIosArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getIosArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of iosArm64 target. Declare iosArm64 target to access this source set. If iosArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosArm64() // Target is declared, iosArm64Test source set is created
        
           sourceSets {
             iosArm64Test.dependencies {
                 // Add iosArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getIosSimulatorArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getIosSimulatorArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of iosSimulatorArm64 target. Declare iosSimulatorArm64 target to access this source set. If iosSimulatorArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosSimulatorArm64() // Target is declared, iosSimulatorArm64Main source set is created
        
           sourceSets {
             iosSimulatorArm64Main.dependencies {
                 // Add iosSimulatorArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getIosSimulatorArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getIosSimulatorArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of iosSimulatorArm64 target. Declare iosSimulatorArm64 target to access this source set. If iosSimulatorArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosSimulatorArm64() // Target is declared, iosSimulatorArm64Test source set is created
        
           sourceSets {
             iosSimulatorArm64Test.dependencies {
                 // Add iosSimulatorArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getIosX64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getIosX64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of iosX64 target. Declare iosX64 target to access this source set. If iosX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosX64() // Target is declared, iosX64Main source set is created
        
           sourceSets {
             iosX64Main.dependencies {
                 // Add iosX64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getIosX64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getIosX64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of iosX64 target. Declare iosX64 target to access this source set. If iosX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           iosX64() // Target is declared, iosX64Test source set is created
        
           sourceSets {
             iosX64Test.dependencies {
                 // Add iosX64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getLinuxArm32HfpMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getLinuxArm32HfpMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of linuxArm32Hfp target. Declare linuxArm32Hfp target to access this source set. If linuxArm32Hfp target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxArm32Hfp() // Target is declared, linuxArm32HfpMain source set is created
        
           sourceSets {
             linuxArm32HfpMain.dependencies {
                 // Add linuxArm32HfpMain dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getLinuxArm32HfpTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getLinuxArm32HfpTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of linuxArm32Hfp target. Declare linuxArm32Hfp target to access this source set. If linuxArm32Hfp target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxArm32Hfp() // Target is declared, linuxArm32HfpTest source set is created
        
           sourceSets {
             linuxArm32HfpTest.dependencies {
                 // Add linuxArm32HfpTest dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getLinuxArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getLinuxArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of linuxArm64 target. Declare linuxArm64 target to access this source set. If linuxArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxArm64() // Target is declared, linuxArm64Main source set is created
        
           sourceSets {
             linuxArm64Main.dependencies {
                 // Add linuxArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getLinuxArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getLinuxArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of linuxArm64 target. Declare linuxArm64 target to access this source set. If linuxArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxArm64() // Target is declared, linuxArm64Test source set is created
        
           sourceSets {
             linuxArm64Test.dependencies {
                 // Add linuxArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getLinuxX64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getLinuxX64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of linuxX64 target. Declare linuxX64 target to access this source set. If linuxX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxX64() // Target is declared, linuxX64Main source set is created
        
           sourceSets {
             linuxX64Main.dependencies {
                 // Add linuxX64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getLinuxX64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getLinuxX64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of linuxX64 target. Declare linuxX64 target to access this source set. If linuxX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           linuxX64() // Target is declared, linuxX64Test source set is created
        
           sourceSets {
             linuxX64Test.dependencies {
                 // Add linuxX64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getMacosArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMacosArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of macosArm64 target. Declare macosArm64 target to access this source set. If macosArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           macosArm64() // Target is declared, macosArm64Main source set is created
        
           sourceSets {
             macosArm64Main.dependencies {
                 // Add macosArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getMacosArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMacosArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of macosArm64 target. Declare macosArm64 target to access this source set. If macosArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           macosArm64() // Target is declared, macosArm64Test source set is created
        
           sourceSets {
             macosArm64Test.dependencies {
                 // Add macosArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getMacosX64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMacosX64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of macosX64 target. Declare macosX64 target to access this source set. If macosX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           macosX64() // Target is declared, macosX64Main source set is created
        
           sourceSets {
             macosX64Main.dependencies {
                 // Add macosX64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getMacosX64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMacosX64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of macosX64 target. Declare macosX64 target to access this source set. If macosX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           macosX64() // Target is declared, macosX64Test source set is created
        
           sourceSets {
             macosX64Test.dependencies {
                 // Add macosX64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getMingwX64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMingwX64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of mingwX64 target. Declare mingwX64 target to access this source set. If mingwX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           mingwX64() // Target is declared, mingwX64Main source set is created
        
           sourceSets {
             mingwX64Main.dependencies {
                 // Add mingwX64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getMingwX64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getMingwX64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of mingwX64 target. Declare mingwX64 target to access this source set. If mingwX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           mingwX64() // Target is declared, mingwX64Test source set is created
        
           sourceSets {
             mingwX64Test.dependencies {
                 // Add mingwX64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getTvosArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getTvosArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of tvosArm64 target. Declare tvosArm64 target to access this source set. If tvosArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           tvosArm64() // Target is declared, tvosArm64Main source set is created
        
           sourceSets {
             tvosArm64Main.dependencies {
                 // Add tvosArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getTvosArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getTvosArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of tvosArm64 target. Declare tvosArm64 target to access this source set. If tvosArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           tvosArm64() // Target is declared, tvosArm64Test source set is created
        
           sourceSets {
             tvosArm64Test.dependencies {
                 // Add tvosArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getTvosSimulatorArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getTvosSimulatorArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of tvosSimulatorArm64 target. Declare tvosSimulatorArm64 target to access this source set. If tvosSimulatorArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           tvosSimulatorArm64() // Target is declared, tvosSimulatorArm64Main source set is created
        
           sourceSets {
             tvosSimulatorArm64Main.dependencies {
                 // Add tvosSimulatorArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getTvosSimulatorArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getTvosSimulatorArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of tvosSimulatorArm64 target. Declare tvosSimulatorArm64 target to access this source set. If tvosSimulatorArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           tvosSimulatorArm64() // Target is declared, tvosSimulatorArm64Test source set is created
        
           sourceSets {
             tvosSimulatorArm64Test.dependencies {
                 // Add tvosSimulatorArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getTvosX64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getTvosX64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of tvosX64 target. Declare tvosX64 target to access this source set. If tvosX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           tvosX64() // Target is declared, tvosX64Main source set is created
        
           sourceSets {
             tvosX64Main.dependencies {
                 // Add tvosX64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getTvosX64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getTvosX64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of tvosX64 target. Declare tvosX64 target to access this source set. If tvosX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           tvosX64() // Target is declared, tvosX64Test source set is created
        
           sourceSets {
             tvosX64Test.dependencies {
                 // Add tvosX64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosArm32Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosArm32Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of watchosArm32 target. Declare watchosArm32 target to access this source set. If watchosArm32 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosArm32() // Target is declared, watchosArm32Main source set is created
        
           sourceSets {
             watchosArm32Main.dependencies {
                 // Add watchosArm32Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosArm32Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosArm32Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of watchosArm32 target. Declare watchosArm32 target to access this source set. If watchosArm32 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosArm32() // Target is declared, watchosArm32Test source set is created
        
           sourceSets {
             watchosArm32Test.dependencies {
                 // Add watchosArm32Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of watchosArm64 target. Declare watchosArm64 target to access this source set. If watchosArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosArm64() // Target is declared, watchosArm64Main source set is created
        
           sourceSets {
             watchosArm64Main.dependencies {
                 // Add watchosArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of watchosArm64 target. Declare watchosArm64 target to access this source set. If watchosArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosArm64() // Target is declared, watchosArm64Test source set is created
        
           sourceSets {
             watchosArm64Test.dependencies {
                 // Add watchosArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosDeviceArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosDeviceArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of watchosDeviceArm64 target. Declare watchosDeviceArm64 target to access this source set. If watchosDeviceArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosDeviceArm64() // Target is declared, watchosDeviceArm64Main source set is created
        
           sourceSets {
             watchosDeviceArm64Main.dependencies {
                 // Add watchosDeviceArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosDeviceArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosDeviceArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of watchosDeviceArm64 target. Declare watchosDeviceArm64 target to access this source set. If watchosDeviceArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosDeviceArm64() // Target is declared, watchosDeviceArm64Test source set is created
        
           sourceSets {
             watchosDeviceArm64Test.dependencies {
                 // Add watchosDeviceArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosSimulatorArm64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosSimulatorArm64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of watchosSimulatorArm64 target. Declare watchosSimulatorArm64 target to access this source set. If watchosSimulatorArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosSimulatorArm64() // Target is declared, watchosSimulatorArm64Main source set is created
        
           sourceSets {
             watchosSimulatorArm64Main.dependencies {
                 // Add watchosSimulatorArm64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosSimulatorArm64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosSimulatorArm64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of watchosSimulatorArm64 target. Declare watchosSimulatorArm64 target to access this source set. If watchosSimulatorArm64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosSimulatorArm64() // Target is declared, watchosSimulatorArm64Test source set is created
        
           sourceSets {
             watchosSimulatorArm64Test.dependencies {
                 // Add watchosSimulatorArm64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosX64Main

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosX64Main(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of watchosX64 target. Declare watchosX64 target to access this source set. If watchosX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosX64() // Target is declared, watchosX64Main source set is created
        
           sourceSets {
             watchosX64Main.dependencies {
                 // Add watchosX64Main dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getWatchosX64Test

         abstract NamedDomainObjectProvider<KotlinSourceSet> getWatchosX64Test(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the test Kotlin Source Set of watchosX64 target. Declare watchosX64 target to access this source set. If watchosX64 target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           watchosX64() // Target is declared, watchosX64Test source set is created
        
           sourceSets {
             watchosX64Test.dependencies {
                 // Add watchosX64Test dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidMain

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidMain(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the main Kotlin Source Set of android target. Declare android target to access this source set. If android target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidTarget() // Target is declared, androidMain source set is created
        
           sourceSets {
             androidMain.dependencies {
                 // Add androidMain dependencies here
             }
           }
        }
        Since:

        1.9.20

      • getAndroidUnitTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidUnitTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the unit test Kotlin Source Set of android target. Declare android target to access this source set. If android target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidTarget() // Target is declared, androidUnitTest source set is created
        
           sourceSets {
             androidUnitTest.dependencies {
                 // Add androidUnitTest dependencies here
             }
           }
        }
        Since:

        2.0.20

      • getAndroidInstrumentedTest

         abstract NamedDomainObjectProvider<KotlinSourceSet> getAndroidInstrumentedTest(NamedDomainObjectContainer<KotlinSourceSet> $self)

        Static accessor for the instrumented test Kotlin Source Set of android target. Declare android target to access this source set. If android target wasn't declared, accessing this source set will cause a runtime error during configuration time.

        Sample:

        kotlin {
           androidTarget() // Target is declared, androidInstrumentedTest source set is created
        
           sourceSets {
             androidInstrumentedTest.dependencies {
                 // Add androidUnitTest dependencies here
             }
           }
        }
        Since:

        2.0.20