Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for JvmCompileExtension (0.09 sec)

  1. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/JvmCompileExtension.kt

    import org.gradle.api.tasks.SourceSet
    
    /**
     * A container of [JvmCompilation]s for a JVM project.
     *
     * Utility methods are provided to add compilations based on existing [SourceSet]s.
     */
    abstract class JvmCompileExtension {
    
        companion object {
            const val NAME: String = "jvmCompile"
        }
    
        abstract val compilations: NamedDomainObjectContainer<JvmCompilation>
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jun 24 14:00:52 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. build-logic/jvm/src/main/kotlin/gradlebuild.jvm-compile.gradle.kts

    // it controls the JVM version of the compilation. This allows each source set within a project
    // to compile to different JVM versions.
    
    val jvmCompile = extensions.create<JvmCompileExtension>(JvmCompileExtension.NAME)
    
    jvmCompile.compilations.configureEach {
        // Assume the compilation does not use any workarounds
        usesJdkInternals = false
        usesFutureStdlib = false
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jun 24 13:46:12 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  3. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

        options.release = provider {
            throw GradleException("This task '${name}' is not associated with a compilation. Associate it with a compilation on the '${JvmCompileExtension.NAME}' extension.")
        }
    }
    
    val gradleModule = the<GradleModuleExtension>()
    the<JvmCompileExtension>().apply {
        compilations {
            configureEach {
                // Everything compiles to Java 17 by default
                targetJvmVersion = 17
            }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Dec 19 06:44:41 UTC 2025
    - 18.9K bytes
    - Viewed (0)
Back to top