Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for useDeclaration (0.21 sec)

  1. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerPluginClasspathInjectionIntegrationTest.groovy

            when:
            buildScript plugin.useDeclaration
            def result = runner()
                .withPluginClasspath([])
                .buildAndFail()
    
            then:
            !execFailure(result).error.contains("Gradle TestKit (classpath:")
        }
    
        def "injected classpath is indicated in error message if plugin not found"() {
            when:
            buildScript plugin.useDeclaration
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 15 03:45:31 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerUnsupportedFeatureFailureIntegrationTest.groovy

            def minSupportedVersion = TestKitFeature.PLUGIN_CLASSPATH_INJECTION.since.version
    
            given:
            buildScript plugin.useDeclaration
    
            when:
            runner('helloWorld')
                .withGradleVersion(maxUnsupportedVersion)
                .withPluginClasspath([file("foo")])
                .build()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerConventionalPluginClasspathInjectionEndUserIntegrationTest.groovy

                        given:
                        new File(testProjectDir, 'settings.gradle') << "rootProject.name = 'plugin-test'"
                        new File(testProjectDir, 'build.gradle') << '''$plugin.useDeclaration'''
    
                        when:
                        def result = GradleRunner.create()
                            .withProjectDir(testProjectDir)
                            .withArguments('helloWorld')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerConventionalPluginClasspathInjectionIntegrationTest.groovy

        private final PluginUnderTest pluginUnderTest = new PluginUnderTest(file("pluginProject"))
    
        def setup() {
            buildFile << pluginUnderTest.useDeclaration
        }
    
        def "uses conventional plugin classpath if requested and is available"() {
            expect:
            pluginUnderTest.build().exposeMetadata {
                runner('helloWorld')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 15 03:45:31 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerPluginClasspathInjectionEndUserIntegrationTest.groovy

                          .collect { new File(it) }
                    }
    
                    def "execute helloWorld task"() {
                        given:
                        buildFile << '''$plugin.useDeclaration'''
    
                        when:
                        def result = GradleRunner.create()
                            .withProjectDir(testProjectDir)
                            .withArguments('helloWorld')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top