Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for hasPlugin (0.13 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/DefaultPluginManagerTest.groovy

            when:
            manager.apply(imperativeClass)
    
            then:
            manager.hasPlugin("foo")
            manager.hasPlugin("bar")
            manager.pluginContainer.size() == 1
            manager.pluginContainer.hasPlugin("foo")
            manager.pluginContainer.hasPlugin("bar")
            manager.pluginContainer.hasPlugin(imperativeClass)
        }
    
        def "plugin with org.gradle id is visible with unqualified id"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/catalog/parser/TomlCatalogFileParserTest.groovy

            then:
            hasPlugin('simple', 'org.example', '1.0')
            hasPlugin('without.version', 'org.example', '')
            hasPlugin('with.id', 'org.example', '1.1')
            hasPlugin('with.ref') {
                withId 'org.example'
                withVersionRef 'ref'
                withVersion {
                    require '1.6'
                }
            }
            hasPlugin('with-rich1') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 05:41:21 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/DefaultPluginContainerTest.groovy

            plugin.is(container.findPlugin("plugin"))
    
            !container.findPlugin(UnknownPlugin)
            !container.findPlugin("unknown")
    
            container.hasPlugin("plugin")
            container.hasPlugin(plugin1Class)
    
            !container.hasPlugin("unknown")
            !container.hasPlugin(UnknownPlugin)
        }
    
        private class UnknownPlugin implements Plugin<Project> {
            void apply(Project project) {}
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/RuleSourceApplicationTest.groovy

            then:
            !project.pluginManager.hasPlugin("custom-plugin")
            !project.pluginManager.hasPlugin("custom-rule-source")
    
            when:
            project.apply plugin: "custom-plugin"
            project.apply plugin: "custom-rule-source"
    
            then:
            project.pluginManager.hasPlugin("custom-plugin")
            project.pluginManager.hasPlugin("custom-rule-source")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-java-library/src/test/groovy/org/gradle/api/plugins/JavaLibraryDistributionPluginTest.groovy

            when:
            project.pluginManager.apply(JavaLibraryDistributionPlugin)
    
            then:
            project.plugins.hasPlugin(JavaLibraryPlugin.class)
            project.extensions.getByType(DistributionContainer.class) != null
            project.plugins.hasPlugin(DistributionPlugin.class)
            project.distributions.main.distributionBaseName.get() == project.name
        }
    
        def "adds distZip task to project"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 13:02:41 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/dsl/org.gradle.api.plugins.PluginManager.xml

                </thead>
                <tr>
                    <td>apply</td>
                </tr>
                <tr>
                    <td>findPlugin</td>
                </tr>
                <tr>
                    <td>hasPlugin</td>
                </tr>
                <tr>
                    <td>withPlugin</td>
                </tr>
            </table>
        </section>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 723 bytes
    - Viewed (0)
  7. platforms/software/reporting/src/test/groovy/org/gradle/api/plugins/ReportingBasePluginTest.groovy

    public class ReportingBasePluginTest extends AbstractProjectBuilderSpec {
    
        def "can apply plugin by id"() {
            given:
            project.apply plugin: 'reporting-base'
    
            expect:
            project.plugins.hasPlugin(ReportingBasePlugin)
        }
    
        def "adds reporting extension"() {
            given:
            project.pluginManager.apply(ReportingBasePlugin)
    
            expect:
            project.reporting instanceof ReportingExtension
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. platforms/ide/ide-plugins/src/main/java/org/gradle/plugins/ide/internal/tooling/IsolatedIdeaModuleInternalBuilder.java

            if (project.getPlugins().hasPlugin(JavaPlugin.class)) {
                model.setExplicitSourceLanguageLevel(ideaModuleExt.getRawLanguageLevel());
                model.setExplicitTargetBytecodeVersion(ideaModuleExt.getRawTargetBytecodeVersion());
            }
    
            // Simulating IdeaPlugin to only expose these values when 'java-base' plugin is applied
            if (project.getPlugins().hasPlugin(JavaBasePlugin.class)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 12:13:36 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/PluginDetectionIntegrationTest.groovy

                    void apply(final Project project) {
                        project.plugins.withId('a') {
                            project.plugins.hasPlugin('b')
                        }
                        project.plugins.withId('c') {
                            project.plugins.hasPlugin('b')
                        }
                    }
                }
    
                apply plugin: ExamplePlugin
                apply plugin: "a"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/DevelocityPluginConfigIntegrationTest.groovy

                    dependencies {
                        classpath("${pluginArtifactId}")
                    }
                }
                gradle.settingsEvaluated { settings ->
                    if (settings.pluginManager.hasPlugin('${plugin.id}')) {
                        logger.lifecycle("${plugin.id} is already applied")
                    } else {
                        logger.lifecycle("Applying ${plugin.className} via init script")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:24:56 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top