Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,002 for conventions (0.28 sec)

  1. platforms/core-configuration/declarative-dsl-provider/src/main/kotlin/org/gradle/internal/declarativedsl/conventions/ConventionsInterpretationSequenceStep.kt

    import org.gradle.internal.declarativedsl.evaluationSchema.buildEvaluationSchema
    import org.gradle.internal.declarativedsl.evaluator.conventions.ConventionDefinition
    import org.gradle.internal.declarativedsl.evaluator.conventions.ConventionsConfiguringBlock
    import org.gradle.internal.declarativedsl.evaluator.conventions.ConventionsTopLevelReceiver
    import org.gradle.internal.declarativedsl.software.softwareTypesConventions
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/providers/propertyConvention/groovy/build.gradle

    // tag::conventions[]
    tasks.register("show") {
        def property = objects.property(String)
    
        // Set a convention
        property.convention("convention 1")
    
        println("value = " + property.get())
    
        // Can replace the convention
        property.convention("convention 2")
        println("value = " + property.get())
    
        property.set("explicit value")
    
        // Once a value is set, the convention is ignored
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 540 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/providers/propertyConvention/kotlin/build.gradle.kts

    // tag::conventions[]
    tasks.register("show") {
        val property = objects.property(String::class)
    
        // Set a convention
        property.convention("convention 1")
    
        println("value = " + property.get())
    
        // Can replace the convention
        property.convention("convention 2")
        println("value = " + property.get())
    
        property.set("explicit value")
    
        // Once a value is set, the convention is ignored
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 547 bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDevelocityPluginIntegrationTest.groovy

        def setup() {
            settingsFile '''
                pluginManagement {
                    includeBuild("dv-conventions")
                }
                plugins {
                    id("dv-conventions")
                }
            '''
    
            buildFile '''
                plugins { id("java") }
            '''
        }
    
        @NotYetImplemented
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/structuring/sharing_build_logic_between_subprojects.adoc

    └── settings.gradle.kts
    ----
    <1> Create the `myproject.java-conventions` convention plugin.
    <2> Applies the `myproject.java-conventions` convention plugin.
    =====
    [.multi-language-sample]
    =====
    [source, groovy]
    ----
    .
    ├── buildSrc
    │   ├── src
    │   │   └──main
    │   │      └──groovy
    │   │         └──myproject.java-conventions.gradle  // <1>
    │   └── build.gradle
    ├── api
    │   ├── src
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 12:58:46 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/conventions/ConventionApplicationHandler.kt

        fun findConventions(softwareTypeName: String): SoftwareTypeConventionResolutionResults?
    }
    
    
    /**
     * Transformation logic for the kinds of resolution results that appear in conventions.
     * For any of the supported result records, supports replacing the `conventions { ... }` receiver in it with
     * the given [targetBaseReceiver].
     */
    private
    class ConventionTransformer(
        private val targetBaseReceiver: ObjectOrigin.ReceiverOrigin
    ) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/conventions/ConventionBlockSchema.kt

        fun conventions(conventions: ConventionsConfiguringBlock.() -> Unit)
    }
    
    
    /**
     * A receiver for the conventions block.  Note that this class is only used to provide a receiver for custom accessors
     * that expose the software types available in the build.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:38 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/files/fileCollections/groovy/build.gradle

        }
    }
    // end::closure[]
    
    tasks.register('conventions') {
        def objects = objects
        doLast {
            // tag::conventions[]
            def files = objects.fileCollection().convention("src")
            files.from("src2")
            def dirNames = files*.name
            println("Source dirs: ${dirNames}") // [src, src2]
            // end::conventions[]
        }
    }
    
    tasks.register('usage') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 13:55:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectSchemaHashCodeTest.kt

            conventions: TypedProjectSchemaEntryList = emptyList(),
            tasks: TypedProjectSchemaEntryList = emptyList(),
            containerElements: TypedProjectSchemaEntryList = emptyList(),
            configurations: List<String> = emptyList()
        ) = hashCodeFor(
            projectSchemaWith(
                extensions = extensions,
                conventions = conventions,
                tasks = tasks,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/main/AnalysisDocumentUtils.kt

    import org.gradle.internal.declarativedsl.dom.resolution.resolutionContainer
    import org.gradle.internal.declarativedsl.evaluator.conventions.ConventionDocumentTransformation
    import org.gradle.internal.declarativedsl.evaluator.conventions.findUsedSoftwareTypeNames
    import org.gradle.internal.declarativedsl.evaluator.runner.AnalysisStepResult
    import org.gradle.internal.declarativedsl.evaluator.runner.EvaluationResult
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:40 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top