Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for applyPlugins (0.26 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompilerTest.kt

                    source = Program.Plugins(fragment)
                )
            )
        }
    
        private
        fun assertPluginApplicationBehaviorOf(fragment: ProgramSourceFragment, applyPlugins: ResidualProgram.Instruction) {
            val target = mock<Project>()
    
            val scriptHost = scriptHostWith(target = target)
    
            val capturedPluginRequests = mutableListOf<PluginRequests>()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptEvaluator.kt

                kotlinScriptBasePluginsApplicator
                    .apply(project)
            }
    
            override fun closeTargetScopeOf(scriptHost: KotlinScriptHost<*>) {
    
                pluginRequestApplicator.applyPlugins(
                    PluginRequests.EMPTY,
                    scriptHost.scriptHandler as ScriptHandlerInternal,
                    null,
                    scriptHost.targetScope
                )
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 10:23:24 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/WellBehavedPluginTest.groovy

            "XcodePluginIntegrationTest",
            "IdeaPluginGoodBehaviourTest"
        ])
        def "plugin can build with empty project"() {
            given:
            applyPlugin()
    
            expect:
            succeeds mainTask
        }
    
        protected applyPlugin(File target = buildFile) {
            target << "apply plugin: '${getQualifiedPluginId()}'\n"
        }
    
        protected applyPluginUnqualified(File target = buildFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 13:39:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. platforms/software/signing/src/test/groovy/org/gradle/plugins/signing/SigningTasksSpec.groovy

            useJavadocAndSourceJars()
            applyPlugin()
            addSigningProperties()
    
            when:
            Sign signTask = signing.sign(jar).first()
            jar.enabled = false
    
            then:
            signTask.signaturesByKey == [:]
        }
    
        def "files to sign are de-duplicated"() {
            given:
            useJavadocAndSourceJars()
            applyPlugin()
            addSigningProperties()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/DevelocityPluginCheckInIntegrationTest.groovy

                task f { doLast { throw new RuntimeException("failed") } }
            """
        }
    
        void applyPlugin() {
            settingsFile << plugin.plugins()
        }
    
        def "detects that the build scan plugin has been [applied=#applied]"() {
            given:
            if (applied) {
                applyPlugin()
            }
    
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 08:50:27 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/PostPluginResolutionFailuresIntegrationSpec.groovy

            buildScript applyPlugin()
    
            expect:
            fails("verify")
            failure.assertThatDescription(startsWith("An exception occurred applying plugin request [id: 'org.my.myplugin', version: '1.0']"))
            failure.assertHasLineNumber(3)
            failure.assertHasCause("throwing plugin")
        }
    
        private static String applyPlugin() {
            """
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildPluginDevelopmentIntegrationTest.groovy

                ${buildA.settingsFile.text}
            """
            applyPlugin(buildA, true)
            buildB.settingsFile.text = """
                pluginManagement {
                    includeBuild("${pluginBuild.toURI()}")
                }
                includeBuild("${pluginDependencyA.toURI()}")
                ${buildB.settingsFile.text}
            """
            applyPlugin(buildB, true)
            includeBuild buildB
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 13:37:31 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/core/BuildScanAutoApplyIntegrationTest.groovy

            given:
            applyPlugin()
            fixture.doCheckIn = false
    
            when:
            succeeds "dummy", "--scan"
    
            then:
            fixture.issuedNoPluginWarning(output)
        }
    
        def "does not warns if scan requested but no scan plugin unsupported"() {
            given:
            applyPlugin()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 08:50:27 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/plugins/DefaultObjectConfigurationAction.java

        @Override
        public ObjectConfigurationAction plugin(final Class<? extends Plugin> pluginClass) {
            actions.add(new Runnable() {
                @Override
                public void run() {
                    applyPlugin(pluginClass);
                }
            });
            return this;
        }
    
        @Override
        public ObjectConfigurationAction plugin(final String pluginId) {
            actions.add(new Runnable() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/plugins/SwiftLibraryPluginIntegrationTest.groovy

    import org.gradle.integtests.fixtures.WellBehavedPluginTest
    
    class SwiftLibraryPluginIntegrationTest extends WellBehavedPluginTest {
        def "plugin can build with empty project with static lib"() {
            given:
            applyPlugin()
            buildFile << """
                library.linkage = [Linkage.STATIC]
            """
    
            expect:
            succeeds mainTask
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top