Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 108 for withRole (0.45 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslRegressionsTest.kt

                    jvmTargetValidationMode = org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode.WARNING
                }
            """)
    
            withFile("src/main/kotlin/code.kt", """
                import org.gradle.api.*
    
                class MyPlugin : Plugin<Project> {
                    override fun apply(project: Project): Unit = project.run {
                        ext {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 07:57:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/TestKitIntegrationTest.kt

                    testImplementation("junit:junit:4.13")
                    testImplementation("org.hamcrest:hamcrest-core:1.3")
                }
    
                $repositoriesBlock
    
                """
            )
    
            withFile(
                "src/main/kotlin/plugin/TestPlugin.kt",
                """
    
                package plugin
    
                import org.gradle.api.*
                import org.gradle.kotlin.dsl.*
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 10:30:09 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/PrecompiledScriptPluginSyntheticIntegrationTest.kt

                }
            }
    
            withDefaultSettingsIn("external-plugins")
            withKotlinDslPluginIn("external-plugins").appendText("""group = "test"""")
            withFile("external-plugins/src/main/kotlin/applied-output.gradle.kts", outputFrom("applied-output plugin"))
            withFile(
                "external-plugins/src/main/kotlin/applied-output-fails.gradle.kts", """
                ${outputFrom("applied-output-fails plugin")}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 07:16:19 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SingletonChildMap.java

        }
    
        @Override
        public <R> R withNode(VfsRelativePath targetPath, CaseSensitivity caseSensitivity, NodeHandler<T, R> handler) {
            return entry.withNode(targetPath, caseSensitivity, handler);
        }
    
        @Override
        public <RESULT> ChildMap<RESULT> invalidate(VfsRelativePath targetPath, CaseSensitivity caseSensitivity, InvalidationHandler<T, RESULT> handler) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/LargeChildMap.java

        }
    
        @Override
        public <R> R withNode(VfsRelativePath targetPath, CaseSensitivity caseSensitivity, NodeHandler<T, R> handler) {
            int childIndexWithCommonPrefix = findChildIndexWithCommonPrefix(targetPath, caseSensitivity);
            if (childIndexWithCommonPrefix >= 0) {
                Entry<T> entry = entries.get(childIndexWithCommonPrefix);
                return entry.withNode(targetPath, caseSensitivity, handler);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/source/PrintStreamLoggingSystemTest.groovy

            then:
            1 * listener.onOutput({ it instanceof LogLevelChangeEvent && it.newLogLevel == LogLevel.WARN })
            1 * listener.onOutput({ it.spans[0].text == withEOL('info') })
            original.toString() == ''
            0 * listener._
        }
    
        private String withEOL(String value) {
            return String.format('%s%n', value)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/PrecompiledScriptPluginModelCrossVersionSpec.groovy

            """.stripIndent())
    
            and:
            withImplementationDependencyOn("project-a", dependencyA)
            withFile("project-a/src/main/kotlin/my-plugin-a.gradle.kts")
    
            and:
            withImplementationDependencyOn("project-b", dependencyB)
            withFile("project-b/src/main/kotlin/my-plugin-b.gradle.kts")
    
            expect:
            assertClassPathFor(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/JacocoIntegrationTest.kt

                                }
                            }
                        }
                    }
                }
                """
            )
    
            withFile("src/main/kotlin/foo.gradle.kts", "plugins { base }")
            withFile(
                "src/test/kotlin/fooTest.kt",
                """
                import org.junit.Test
                class FooTest {
                    @Test fun testFoo() { }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Sep 24 17:45:43 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinStandaloneScriptWarningsIntegrationTest.kt

            withAllWarningsAsErrors()
            val script = withFile("my-init.gradle.kts", scriptContentWithWarning)
            buildAndFail("help", "-I", script.name).apply {
                assertHasWarningLineFor(script)
                assertHasDetailedErrorOutput()
            }
        }
    
        @Test
        fun `fails on warning in applied script`() {
            withAllWarningsAsErrors()
            val script = withFile("my-script.gradle.kts", scriptContentWithWarning)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/AbstractKotlinIntegrationTest.kt

        fun withBuildScriptIn(baseDir: String, script: String, produceFile: (String) -> File = ::newFile): File =
            withFile("$baseDir/build.gradle.kts", script, produceFile)
    
        protected
        fun withFile(fileName: String, text: String = "", produceFile: (String) -> File = ::newFile) =
            writeFile(produceFile(fileName), text)
    
        private
        fun writeFile(file: File, text: String): File =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 16:44:39 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top