- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 160 for RuleSource (0.14 sec)
-
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedToModelMapElementIntegrationTest.groovy
} } class EchoRules extends RuleSource { @Mutate void mutateEcho(Task echo, String message) { echo.message = message } } class Rules extends RuleSource { @Model String message() { "foo" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedAsProjectPluginIntegrationTest.groovy
then: succeeds "value" and: output.contains "value: [foo]" } def "plugin RuleSource can be abstract"() { buildFile << ''' @Managed interface Thing { String getName() void setName(String name) } abstract class MyPlugin extends RuleSource { @Model void p1(Thing t) { println "creating " + t + " from " + toString() assert this == this
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy
ModelThing(String name) { this.name = name } } static class EmptyClass extends RuleSource {} def "can inspect class with no rules"() { expect: extract(EmptyClass).empty } static class ClassWithNonRuleMethods extends RuleSource { static List thing() { [] } static <T> List<T> genericThing() { []
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 13:45:02 UTC 2024 - 30.4K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/artifacts/ComponentSelectionRules.java
* * The ruleSource provides the rule as exactly one rule method annotated with {@link org.gradle.model.Mutate}. * * This rule method: * <ul> * <li>must return void.</li> * <li>must have {@link org.gradle.api.artifacts.ComponentSelection} as its parameter.</li> * </ul> * * @param ruleSource an instance providing a rule implementation * @return this
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 31 08:53:53 UTC 2023 - 5.5K bytes - Viewed (0) -
platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomBinaryTasksIntegrationTest.groovy
def "setup"() { buildFile << """ @Managed interface SampleLibrary extends GeneralComponentSpec {} @Managed interface SampleBinary extends BinarySpec {} class MyComponentBasePlugin extends RuleSource { @ComponentType void registerLibrary(TypeBuilder<SampleLibrary> builder) { } @ComponentType void registerBinary(TypeBuilder<SampleBinary> builder) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 9.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/DefaultComponentSelectionRulesTest.groovy
when: rules.all ruleSource then: def e = thrown(InvalidUserCodeException) e.message == "bad rule source" and: 1 * adapter.createFromRuleSource(ComponentSelection, ruleSource) >> { throw new InvalidUserCodeException("bad rule source") } when: rules.withModule("group:module", ruleSource) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 8.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/MutationRuleExecutionOrderTest.groovy
recorder.mutations << input } } static class FirstInputCreationRule extends RuleSource { @Model String firstInput() { "first" } } static class SecondInputCreationRule extends RuleSource { @Model String secondInput() { "second" } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelMapIntegrationTest.groovy
def "provides basic meta-data for map"() { when: buildScript ''' @Managed interface Thing { } class Rules extends RuleSource { @Model void things(ModelMap<Thing> things) { } } apply type: Rules model { tasks {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ModelSetIntegrationTest.groovy
def "provides basic meta-data for set"() { when: buildScript ''' @Managed interface Person { } class Rules extends RuleSource { @Model void people(ModelSet<Person> people) { } } apply type: Rules model { tasks {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 18.9K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 20 12:57:53 UTC 2024 - 19.2K bytes - Viewed (0)