Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for withRole (0.21 sec)

  1. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/UpgradedPropertiesChangesTest.kt

        @Test
        fun `should report binary incompatibility for upgraded property without any metadata`() {
            checkNotBinaryCompatible(
                v1 = {
                    withFile(
                        "java/com/example/Task.java",
                        """
                            package com.example;
    
                            public abstract class Task {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            resolve(path).apply {
                mkdirs()
            }
    
        private
        fun File.withSettings(text: String = ""): File =
            withFile("settings.gradle.kts", text)
    
        private
        fun File.withBuildScript(text: String = ""): File =
            withFile("build.gradle.kts", text)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. 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)
  4. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinDslJvmTargetIntegrationTest.kt

            withDefaultSettingsIn("buildSrc")
            withKotlinDslPluginIn("buildSrc").appendText("""
                dependencies {
                    implementation(files("utils.jar"))
                }
            """)
    
            withFile("buildSrc/src/main/kotlin/some.gradle.kts", printScriptJavaClassFileMajorVersion)
            withBuildScript("""plugins { id("some") }""")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/K2IntegrationTest.kt

        private
        fun withK2BuildLogic() {
            withFile("build-logic/src/main/kotlin/MyTask.kt", """
                import org.gradle.api.DefaultTask
                import org.gradle.api.tasks.TaskAction
    
                abstract class MyTask : DefaultTask() {
                    @TaskAction fun action() { println("Doing something") }
                }
            """)
            withFile("build-logic/src/main/kotlin/MyPlugin.kt", """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 06:52:58 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. manifests/addons/dashboards/lib/panels.libsonnet

          heatmap.new(title)
          + heatmap.queryOptions.withTargets(targets)
          + heatmap.queryOptions.withInterval('1m')
          + options.calculation.xBuckets.withMode('size')
          + options.calculation.xBuckets.withValue('1min')
          + options.withCellGap(0)
          + options.color.withMode('scheme')
          + options.color.withScheme('Spectral')
          + options.color.withSteps(128)
          + options.yAxis.withDecimals(0)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SnapshotUtil.java

            return children.withNode(targetPath, caseSensitivity, new ChildMap.NodeHandler<T, Optional<MetadataSnapshot>>() {
                @Override
                public Optional<MetadataSnapshot> handleAsDescendantOfChild(VfsRelativePath pathInChild, T child) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/KotlinScriptDependenciesResolverTest.kt

                "Project"
            )
        }
    
        private
        fun assertSucceedsForScriptWithReceiver(fileName: String, receiverType: String) {
            assertSucceeds(
                withFile(fileName, requiringImplicitReceiverOf(receiverType))
            )
        }
    
        private
        fun requiringImplicitReceiverOf(type: String) = """
            val $type.implicitReceiver get() = this
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:12:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt

            // given: same init, settings & build files all applying same script
            val same = withFile("same.gradle.kts", """println("Same script on ${'$'}this")""")
            val sameApply = """apply(from = "same.gradle.kts")"""
            val initScriptFile = withFile("same.init.gradle.kts", sameApply)
    
            val initializationFile = cachedInitializationFile(initScriptFile, false, true)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			oldObj: "baz",
    			schema: withRule(stringType, `
    				!oldSelf.hasValue() || self == "bar"
    			`),
    		},
    		{
    			name:   "integer",
    			obj:    1,
    			oldObj: 2,
    			schema: withRule(integerType, `
    				!oldSelf.hasValue() || self == 1
    			`),
    		},
    		{
    			name:   "number",
    			obj:    1.1,
    			oldObj: 2.2,
    			schema: withRule(numberType, `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top