Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 58 for hasPlugin (0.2 sec)

  1. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/plugins/ComponentBasePluginTest.groovy

        def "can apply plugin by id"() {
            when:
            dsl {
                apply plugin: 'component-base'
            }
    
            then:
            project.pluginManager.pluginContainer.hasPlugin(ComponentBasePlugin)
        }
    
        def "applies lifecycle base plugin only"() {
            when:
            dsl {
                apply plugin: ComponentBasePlugin
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/plugins/ClangCompilerPluginTest.groovy

        String getToolchainName() {
            "clang"
        }
    
        def "can apply plugin by id"() {
            given:
            project.apply plugin: 'clang-compiler'
    
            expect:
            project.plugins.hasPlugin(pluginClass)
        }
    
        def "makes a Clang tool chain available"() {
            when:
            register()
    
            then:
            toolchain instanceof ClangToolChain
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/plugins/GccCompilerPluginTest.groovy

        @Override
        String getToolchainName() {
            "gcc"
        }
    
        def "can apply plugin by id"() {
            given:
            project.apply plugin: 'gcc-compiler'
    
            expect:
            project.plugins.hasPlugin(pluginClass)
        }
    
        def "makes a Gcc tool chain available"() {
            when:
            register()
    
            then:
            toolchain instanceof GccToolChain
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/LibrariesSourceGeneratorTest.groovy

            sources.hasDependencyAlias('boo', 'getBoo', "with <b>no version specified</b>")
    
            sources.hasPlugin('fooPlugin', 'getFooPlugin', "with version <b>1.0</b>")
            sources.hasPlugin('barPlugin', 'getBarPlugin', "with version reference <b>barVersion</b>")
            sources.hasPlugin('bazPlugin', 'getBazPlugin', "with <b>no version specified</b>")
        }
    
        @VersionCatalogProblemTestFor(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. platforms/software/platform-base/src/test/groovy/org/gradle/language/base/plugins/LifecycleBasePluginTest.groovy

    class LifecycleBasePluginTest extends AbstractProjectBuilderSpec {
    
        def "can apply plugin by id"() {
            given:
            project.apply plugin: 'lifecycle-base'
    
            expect:
            project.plugins.hasPlugin(LifecycleBasePlugin)
        }
    
        public void createsTasksAndAppliesMappings() {
            when:
            project.pluginManager.apply(LifecycleBasePlugin)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/BuildSrcClassPathModeConfigurationAction.kt

            mapNotNull { it.id as? ProjectComponentIdentifier }
    
        private
        fun Sequence<Project>.withJavaBasePlugin() =
            filter { it.plugins.hasPlugin(JavaBasePlugin::class.java) }
    
        private
        fun Sequence<Project>.allSourceSetsRoots() =
            flatMap { it.sourceSets.flatMap { it.allSource.srcDirs }.asSequence() }
    
        private
        val Project.sourceSets
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 06 15:06:32 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-groovy/src/test/groovy/org/gradle/api/plugins/GroovyBasePluginTest.groovy

            project = TestUtil.create(temporaryFolder).rootProject()
            project.pluginManager.apply(GroovyBasePlugin)
        }
    
        @Test void appliesTheJavaBasePluginToTheProject() {
            assertTrue(project.getPlugins().hasPlugin(JavaBasePlugin));
        }
    
        @Test void appliesMappingsToNewSourceSet() {
            def sourceSet = project.sourceSets.create('custom')
            assertThat(sourceSet.groovy.displayName, equalTo("custom Groovy source"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/JavaBasePluginTest.groovy

            when:
            project.pluginManager.apply(JavaBasePlugin)
    
            then:
            project.plugins.hasPlugin(ReportingBasePlugin)
            project.plugins.hasPlugin(BasePlugin)
            project.plugins.hasPlugin(JvmEcosystemPlugin)
            project.convention.plugins.java instanceof JavaPluginConvention
            project.extensions.sourceSets.is(project.convention.plugins.java.sourceSets)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  9. subprojects/diagnostics/src/test/groovy/org/gradle/api/plugins/ProjectReportsPluginTest.groovy

        def appliesBaseReportingPluginAndAddsConventionObject() {
            when:
            plugin.apply(project)
    
            then:
            project.plugins.hasPlugin(ReportingBasePlugin.class)
            project.convention.getPlugin(ProjectReportsPluginConvention.class)
        }
    
        def addsTasksToProject() {
            when:
            plugin.apply(project);
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 25 21:08:17 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. platforms/jvm/code-quality/src/test/groovy/org/gradle/api/plugins/quality/CodeNarcPluginTest.groovy

        def setup() {
            project.pluginManager.apply(CodeNarcPlugin)
        }
    
        def "applies reporting-base plugin"() {
            expect:
            project.plugins.hasPlugin(ReportingBasePlugin)
        }
    
        def "adds codenarc configuration"() {
            def config = project.configurations.findByName("codenarc")
    
            expect:
            config != null
            !config.visible
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top