- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 158 for RuleSource (0.14 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/RuleSourceSchemaExtractionStrategyTest.groovy
def store = new DefaultModelSchemaStore(DefaultModelSchemaExtractor.withDefaultStrategies()) def "assembles schema for RuleSource type"() { expect: def schema = store.getSchema(ModelType.of(RuleSource)) schema instanceof RuleSourceSchema !(schema instanceof ManagedImplSchema) !(schema instanceof CompositeSchema) schema instanceof StructSchema
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentBinariesIntegrationTest.groovy
@Managed interface LibrarySourceSet extends LanguageSourceSet {} class MyBinaryDeclarationModel implements Plugin<Project> { void apply(final Project project) {} static class ComponentModel extends RuleSource { @ComponentType void registerLibrary(TypeBuilder<SampleLibrary> builder) {} @Mutate void createSampleComponentComponents(ModelMap<SampleLibrary> componentSpecs) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 13.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy
void setLongPropertyFromInt(Long value) Long getLongPropertyFromInteger() void setLongPropertyFromInteger(Long value) } class RulePlugin extends RuleSource { @Model void createPrimitiveTypes(PrimitiveTypes primitiveTypes) { primitiveTypes.longPropertyFromInt = 123
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 27.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ClassModelRuleSourceValidationTest.groovy
OuterClass.DoesNotExtendRuleSource | "Rule source classes must directly extend org.gradle.model.RuleSource" OuterClass.HasSuperclass | "Rule source classes must directly extend org.gradle.model.RuleSource" } def "valid #type"() { when: extractor.extract(type) then: noExceptionThrown() where:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/FormattingValidationProblemCollectorTest.groovy
given: def collector = new FormattingValidationProblemCollector("<thing>", ModelType.of(String)) collector.add("does not extend RuleSource") expect: collector.format() == 'Type java.lang.String is not a valid <thing>: does not extend RuleSource' } def "formats message with a single problem with a long message"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/plugins/RuleBasedPluginTarget.java
ModelRegistry modelRegistry = target.getModelRegistry(); Iterable<Class<? extends RuleSource>> declaredSources = ruleDetector.getDeclaredSources(clazz); for (Class<? extends RuleSource> ruleSource : declaredSources) { ExtractedRuleSource<?> rules = ruleInspector.extract(ruleSource); for (Class<?> dependency : rules.getRequiredPlugins()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:42:21 UTC 2024 - 3K bytes - Viewed (0) -
platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/LanguageSourceSetIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 6.6K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/modelRules/ruleSourcePluginEach/groovy/build.gradle
ModelMap<Item> getChildren() } class PluginRules extends RuleSource { @Defaults void setDefaultFileSize(@Each FileItem file) { file.size = 1024 } @Rules void applyValidateRules(ValidateRules rules, @Each DirectoryItem directory) {} } apply plugin: PluginRules abstract class ValidateRules extends RuleSource { @Validate void validateSizeIsPositive(ModelMap<FileItem> files) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomBinaryIntegrationTest.groovy
class DefaultSomeBinary extends BaseBinarySpec implements SomeBinary {} class Rules1 extends RuleSource { @ComponentType void register(TypeBuilder<SomeBinary> builder) { builder.defaultImplementation(DefaultSomeBinary) } } class Rules2 extends RuleSource { @ComponentType void register(TypeBuilder<SomeBinary> builder) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 11K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/RuleSourceBackedRuleActionTest.groovy
when: action = RuleSourceBackedRuleAction.create(ModelType.of(List), ruleSource) then: action.inputTypes == [String, Integer, Set] when: action.execute(collector, ["foo", 1, ["bar", "baz"] as Set]) then: collector == ["foo", 1, "bar", "baz"] where: ruleSource << [new ListRuleSource(), new ArrayListRuleSource()] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 6.4K bytes - Viewed (0)