Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 162 for RuleSource (0.24 sec)

  1. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/VariantAspectExtractionIntegrationTest.groovy

            @Managed
            interface SampleBinary extends BinarySpec {
                @Variant
                Integer getVariantProp()
                void setVariantProp(Integer variant)
            }
            class Rules extends RuleSource {
                @ComponentType
                void register(TypeBuilder<SampleBinary> builder) {}
            }
            apply plugin: Rules
            """
    
            expect:
            fails "components"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InvalidManagedModelRuleIntegrationTest.groovy

            buildScript '''
                @Managed
                interface Person {
                    int getThumbCount()
                    void setThumbCount(int c)
                }
    
                class RulePlugin extends RuleSource {
                    @Model
                    void createPerson(Person person) {
                        person.setThumbCount(person)
                    }
    
                    @Mutate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleBindingTest.groovy

        }
    
        static class ProvidesStringOne extends RuleSource {
            @Model
            String s1() {
                "foo"
            }
        }
    
        static class ProvidesStringTwo extends RuleSource {
            @Model
            String s2() {
                "bar"
            }
        }
    
        static class MutatesString extends RuleSource {
            @Mutate
            void m(String s) {
    
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/AbstractComponentModelIntegrationTest.groovy

         */
        void withCustomComponentType() {
            buildFile << """
                @Managed interface CustomComponent extends GeneralComponentSpec {}
    
                class ComponentTypeRules extends RuleSource {
                    @ComponentType
                    void registerCustomComponentType(TypeBuilder<CustomComponent> builder) {}
                }
    
                apply type: ComponentTypeRules
            """
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/plugins/VisualStudioPluginRules.java

    import org.gradle.model.Model;
    import org.gradle.model.Mutate;
    import org.gradle.model.RuleSource;
    import org.gradle.nativeplatform.NativeBinarySpec;
    import org.gradle.platform.base.BinaryContainer;
    
    @Incubating
    class VisualStudioPluginRules {
        static class VisualStudioExtensionRules extends RuleSource {
            @Model
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/FunctionalSourceSetIntegrationTest.groovy

        def "can create a top level functional source set with a rule"() {
            buildScript """
            apply plugin: 'language-base'
    
            class Rules extends RuleSource {
                @Model
                void fss(FunctionalSourceSet sources) {
                }
    
                @Mutate void printTask(ModelMap<Task> tasks, FunctionalSourceSet sources) {
                    tasks.create("printTask") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InvalidManagedModelMutationIntegrationTest.groovy

            buildScript '''
                @Managed
                interface Person {
                    String getName()
                    void setName(String name)
                }
    
                class RulePlugin extends RuleSource {
                    @Model
                    void person(Person person) {
                    }
    
                    @Model
                    String name(Person person) {
                        person.name = "bar"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ScopedRuleTest.groovy

        ModelRegistry registry = new ModelRegistryHelper(new ModelRuleExtractor(extractors, proxyFactory, schemaStore, structBindingsStore))
    
        static class RuleSourceUsingRuleWithDependencies extends RuleSource {
            @HasDependencies
            void rule() {}
        }
    
        class ImperativePlugin implements Plugin<Project> {
            void apply(Project target) {
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/plugins/TestSuiteModelIntegrationSpec.groovy

                class DefaultCustomLanguageSourceSet extends BaseLanguageSourceSet implements CustomLanguageSourceSet {
                    final String data = "foo"
                }
    
                class TestSuiteTypeRules extends RuleSource {
                    @ComponentType
                    void registerCustomTestSuiteType(TypeBuilder<CustomTestSuite> builder) {
                        builder.defaultImplementation(DefaultCustomTestSuite)
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/Mutate.java

    import java.lang.annotation.Target;
    
    /**
     * Denotes that the {@link RuleSource} method rule carrying this annotation mutates the rule subject.
     * <p>
     * Mutate rules execute after {@link Defaults} rules, but before {@link Finalize} rules.
     * The first parameter of the rule is the rule subject, which is mutable for the duration of the rule.
     * <p>
     * Please see {@link RuleSource} for more information on method rules.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top