Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for hasPlugin (0.16 sec)

  1. platforms/jvm/plugins-application/src/test/groovy/org/gradle/api/plugins/ApplicationPluginTest.groovy

        def "applies JavaPlugin and adds convention object with default values"() {
            when:
            plugin.apply(project)
    
            then:
            project.plugins.hasPlugin(JavaPlugin.class)
    
            project.convention.getPlugin(ApplicationPluginConvention.class) != null
            project.applicationName == project.name
            project.mainClassName == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. platforms/jvm/scala/src/test/groovy/org/gradle/api/plugins/scala/ScalaPluginTest.groovy

        private final ScalaPlugin scalaPlugin = TestUtil.newInstance(ScalaPlugin)
    
        def appliesTheJavaPluginToTheProject() {
            when:
            scalaPlugin.apply(project)
    
            then:
            project.getPlugins().hasPlugin(JavaPlugin)
        }
    
        def addsScalaConventionToEachSourceSetAndAppliesMappings() {
            when:
            scalaPlugin.apply(project)
    
            then:
            def sourceSet = project.sourceSets.main
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. platforms/jvm/ear/src/main/java/org/gradle/plugins/ear/EarPlugin.java

                    }
                });
    
                task.from((Callable<FileCollection>) () -> {
                    if (project.getPlugins().hasPlugin(JavaPlugin.class)) {
                        return null;
                    } else {
                        return task.getAppDirectory().getAsFileTree();
                    }
                });
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 12 16:57:15 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/use/resolve/internal/ArtifactRepositoriesPluginResolver.java

            public void applyTo(PluginManagerInternal pluginManager) {
                PluginCoordinates altCoords = pluginRequest.getAlternativeCoordinates().orElse(null);
                if (altCoords != null && pluginManager.hasPlugin(altCoords.getId().getId())) {
                    return;
                }
    
                pluginManager.apply(pluginRequest.getId().getId());
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:20:28 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/internal/WtpComponentFactory.java

            }
    
            @Override
            public boolean isOffline() {
                return !includeLibraries();
            }
    
            private boolean includeLibraries() {
                return !project.getPlugins().hasPlugin(JavaPlugin.class);
            }
    
            @Override
            public boolean downloadSources() {
                return false;
            }
    
            @Override
            public boolean downloadJavaDoc() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinDslScriptsModelBuilder.kt

    
    internal
    fun Project.discoverBuildScript(): File? =
        buildFile.takeIf { it.isKotlinDslFile }
    
    
    internal
    fun Project.discoverPrecompiledScriptPluginScripts() =
        if (plugins.hasPlugin("org.gradle.kotlin.kotlin-dsl"))
            serviceOf<PrecompiledScriptPluginsSupport>()
                .collectScriptPluginFilesOf(this)
        else
            emptyList()
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 18:13:21 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/plugins/NativeComponentModelPluginTest.groovy

        }
    
        def "can apply plugin by id"() {
            given:
            def project = TestUtil.createRootProject(null)
            project.apply plugin: 'native-component-model'
    
            expect:
            project.plugins.hasPlugin(NativeComponentModelPlugin)
        }
    
        public <T> T realizeModelElement(String path, Class<T> type) {
            realizeModelElement(path, ModelType.of(type))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. platforms/jvm/ear/src/test/groovy/org/gradle/plugins/ear/EarPluginTest.groovy

      </module>
    </application>
    """
    
        def "applies base plugin and adds convention"() {
            when:
            project.pluginManager.apply(EarPlugin)
    
            then:
            project.getPlugins().hasPlugin(BasePlugin)
            project.convention.plugins.ear instanceof EarPluginConvention
        }
    
        def "creates configurations"() {
            when:
            project.pluginManager.apply(EarPlugin)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 02 14:55:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  9. platforms/jvm/java-platform/src/main/java/org/gradle/api/plugins/JavaPlatformPlugin.java

            this.softwareComponentFactory = softwareComponentFactory;
        }
    
        @Override
        public void apply(Project project) {
            if (project.getPluginManager().hasPlugin("java")) {
                // This already throws when creating `apiElements` so be eager to have a clear error message
                throw new IllegalStateException(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 11K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/NativeDependentBinariesResolutionStrategy.java

            for (ProjectInternal project : orderedProjects) {
                if (project.getPlugins().hasPlugin(ComponentModelBasePlugin.class)) {
                    ModelRegistry modelRegistry = projectModelResolver.resolveProjectModel(project.getPath());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 11.4K bytes
    - Viewed (0)
Back to top