Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 123 for GetByType (0.23 sec)

  1. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/IvyPluginPublishingPlugin.java

                @Override
                public void execute(PublishingExtension publishing) {
                    final GradlePluginDevelopmentExtension pluginDevelopment = project.getExtensions().getByType(GradlePluginDevelopmentExtension.class);
                    if (!pluginDevelopment.isAutomatedPublishing()) {
                        return;
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/plugins/NativeComponentModelPlugin.java

                return Cast.cast(NativeToolChainRegistryInternal.class, extensionContainer.getByType(NativeToolChainRegistry.class));
            }
    
            @Model
            BuildTypeContainer buildTypes(ExtensionContainer extensionContainer) {
                return extensionContainer.getByType(BuildTypeContainer.class);
            }
    
            @Model
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 24.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinSettingsScriptIntegrationTest.kt

            """)
            withSettings("""
                pluginManagement {
                    includeBuild("build-logic")
                }
                plugins { id("my-plugin") }
    
                extensions.getByType(MyExtension::class).some("api.get")
                extensions.configure<MyExtension> { some("api.configure") }
                the<MyExtension>().some("kotlin.get")
                configure<MyExtension> { some("kotlin.configure") }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/api/plugins/ExtensionContainer.java

         *
         * @param type extension type
         * @return extension, never null
         * @throws UnknownDomainObjectException When the given extension is not found.
         */
        <T> T getByType(Class<T> type) throws UnknownDomainObjectException;
    
        /**
         * Looks for the extension of a given type (useful to avoid casting). If none found it will throw an exception.
         *
         * @param type extension type
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 05 16:56:20 UTC 2019
    - 9.1K bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/test/groovy/org/gradle/api/plugins/scala/ScalaBasePluginTest.groovy

            when:
            def task = project.task('otherScaladoc', type: ScalaDoc)
    
            then:
            task.destinationDir == project.file("$project.docsDir/scaladoc")
            task.title == project.extensions.getByType(ReportingExtension).apiDocTitle
            task dependsOn()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/DefaultPrecompiledScriptPluginsSupport.kt

    
    private
    val Project.sourceSets: SourceSetContainer
        get() = extensions.getByType()
    
    
    private
    val Project.javaToolchainService: JavaToolchainService
        get() = serviceOf()
    
    
    private
    val Project.java: JavaPluginExtension
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 10:44:10 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/MavenPluginPublishPlugin.java

                @Override
                public void execute(PublishingExtension publishing) {
                    final GradlePluginDevelopmentExtension pluginDevelopment = project.getExtensions().getByType(GradlePluginDevelopmentExtension.class);
                    if (!pluginDevelopment.isAutomatedPublishing()) {
                        return;
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 20:42:59 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/CodeNarcPlugin.java

            task.setDescription("Run CodeNarc analysis for " + sourceSet.getName() + " classes");
            SourceDirectorySet groovySourceSet =  sourceSet.getExtensions().getByType(GroovySourceDirectorySet.class);
            task.setSource(groovySourceSet.matching(filter -> filter.include("**/*.groovy")));
        }
    
        private static String appropriateCodeNarcVersion() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 08:49:25 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. platforms/software/maven/src/test/groovy/org/gradle/api/publish/maven/plugins/MavenPublishPluginTest.groovy

        def componentArtifacts = Mock(FileCollection)
        def component = Stub(SoftwareComponentInternal)
    
        def setup() {
            project.pluginManager.apply(MavenPublishPlugin)
            publishing = project.extensions.getByType(PublishingExtension)
            project.components.add(component)
    
            PublishArtifactSet artifactSet = Stub() {
                getFiles() >> componentArtifacts
            }
    
            component.name >> "test-component"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/ExtensionsStorage.java

            throw unknownExtensionException(name);
        }
    
        public <T> void configureExtension(TypeOf<T> type, Action<? super T> action) {
            getHolderByType(type).configure(action);
        }
    
        public <T> T getByType(TypeOf<T> type) {
            return getHolderByType(type).get();
        }
    
        @Nullable
        public <T> T findByType(TypeOf<T> type) {
            ExtensionHolder<T> found = findHolderByType(type);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 17 11:25:34 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top