Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for freeCompilerArgs (0.18 sec)

  1. build-logic/uber-plugins/src/main/kotlin/gradlebuild.kotlin-experimental-contracts.gradle.kts

     * limitations under the License.
     */
    
    
    tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
        compilerOptions {
            freeCompilerArgs.addAll(
                "-opt-in=kotlin.contracts.ExperimentalContracts",
            )
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 19:09:59 UTC 2024
    - 835 bytes
    - Viewed (0)
  2. analysis/analysis-api/build.gradle.kts

    }
    
    kotlin {
        explicitApi()
    }
    
    sourceSets {
        "main" { projectDefault() }
        "test" { projectDefault() }
    }
    
    tasks.withType<KotlinJvmCompile>().configureEach {
        compilerOptions.freeCompilerArgs.add("-Xcontext-receivers")
    }
    
    testsJar()
    
    projectTest {
        workingDir = rootDir
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/build.gradle.kts

                    "org.jetbrains.kotlin.analysis.api.KaAnalysisApiInternals",
                    "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction",
                )
            )
            freeCompilerArgs.add("-Xcontext-receivers")
        }
    }
    
    
    projectTest(jUnitMode = JUnitMode.JUnit5) {
        dependsOn(":dist")
        workingDir = rootDir
        useJUnitPlatform()
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. analysis/analysis-api-impl-base/build.gradle.kts

        testRuntimeOnly(toolsJar())
    }
    
    sourceSets {
        "main" { projectDefault() }
        "test" { projectDefault() }
    }
    
    tasks.withType<KotlinJvmCompile>().configureEach {
        compilerOptions.freeCompilerArgs.add("-Xcontext-receivers")
        compilerOptions.optIn.add("org.jetbrains.kotlin.analysis.api.KaAnalysisApiInternals")
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/build.gradle.kts

        systemProperties["line.separator"] = "\n"
    }
    
    val compileKotlin by tasks
    
    compileKotlin.dependsOn(generateCode)
    
    tasks.withType<KotlinJvmCompile>().configureEach {
        compilerOptions.freeCompilerArgs.add("-Xcontext-receivers")
        compilerOptions.optIn.add("org.jetbrains.kotlin.analysis.api.KaAnalysisApiInternals")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslRegressionsTest.kt

                    jvmTargetValidationMode = org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode.WARNING
                    compilerOptions.freeCompilerArgs.add("-Xjsr305=strict")
                }
            """)
    
            withFile("src/main/kotlin/code.kt", """
                import org.gradle.api.*
    
                class MyPlugin : Plugin<Project> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 07:57:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    > Kotlin compiler arguments of task ':compileKotlin' do not work for the `kotlin-dsl` plugin. The 'freeCompilerArgs' property has been reassigned. It must instead be appended to. Please use 'freeCompilerArgs.addAll(\"your\", \"args\")' to fix this.
    ----
    
    You must change this to adding your custom compiler arguments to the lazy configuration properties of the Kotlin Gradle Plugin in order for them to be appended to the ones required by the `kotlin-dsl` plugin:
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
Back to top