Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 63 for registerTransforms (0.2 sec)

  1. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-incremental/kotlin/build.gradle.kts

            }
        }
    }
    // end::artifact-transform-countloc[]
    
    val usage = Attribute.of("usage", String::class.java)
    val artifactType = Attribute.of("artifactType", String::class.java)
    
    dependencies {
        registerTransform(CountLoc::class) {
            from.attribute(artifactType, "java")
            to.attribute(artifactType, "loc")
        }
    }
    
    dependencies {
        attributesSchema {
            attribute(usage)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIsolationIntegrationTest.groovy

                    registerTransform(CountRecorder) {
                        from.attribute(artifactType, 'jar')
                        to.attribute(artifactType, 'secondCount')
                        parameters {
                            counter = buildScriptCounter
                        }
                    }
                    registerTransform(CountRecorder) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-incremental/groovy/build.gradle

                }
            }
        }
    }
    // end::artifact-transform-countloc[]
    
    def usage = Attribute.of('usage', String)
    def artifactType = Attribute.of('artifactType', String)
    
    dependencies {
        registerTransform(CountLoc) {
            from.attribute(artifactType, 'java')
            to.attribute(artifactType, 'loc')
        }
    }
    
    dependencies {
        attributesSchema {
            attribute(usage)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-unzip/groovy/build.gradle

        }
    }
    // end::artifact-transform-unzip[]
    
    def usage = Attribute.of('usage', String)
    // tag::artifact-transform-registration[]
    def artifactType = Attribute.of('artifactType', String)
    
    dependencies {
        registerTransform(Unzip) {
            from.attribute(artifactType, 'jar')
            to.attribute(artifactType, 'java-classes-directory')
        }
    }
    // end::artifact-transform-registration[]
    
    dependencies {
        attributesSchema {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-unzip/kotlin/build.gradle.kts

    val usage = Attribute.of("usage", String::class.java)
    // tag::artifact-transform-registration[]
    val artifactType = Attribute.of("artifactType", String::class.java)
    
    dependencies {
        registerTransform(Unzip::class) {
            from.attribute(artifactType, "jar")
            to.attribute(artifactType, "java-classes-directory")
        }
    }
    // end::artifact-transform-registration[]
    
    dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. build-logic/packaging/src/main/kotlin/gradlebuild.instrumentation-metadata.gradle.kts

    import org.gradle.api.internal.GradleInternal
    
    /**
     * A plugin that configures tasks and transforms to generate metadata that is needed for code instrumentation.
     */
    dependencies {
        registerTransform(InstrumentationMetadataTransform::class) {
            from.attribute(ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, ArtifactTypeDefinition.JVM_CLASS_DIRECTORY)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 03 15:19:52 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-relocate/groovy/build.gradle

    }
    // end::artifact-transform-relocate[]
    
    configurations.create("externalClasspath")
    
    def usage = Attribute.of('usage', String)
    def artifactType = Attribute.of('artifactType', String)
    
    dependencies {
        registerTransform(ClassRelocator) {
            from.attribute(artifactType, "jar")
            to.attribute(artifactType, "relocated-classes")
            parameters {
                externalClasspath.from(configurations.externalClasspath)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/samples/templates/build-src-plugin-java-module-transform/buildSrc/src/main/java/org/gradle/sample/transform/javamodules/ExtraModuleInfoPlugin.java

            // register the transform for Jars and "javaModule=false -> javaModule=true"; the plugin extension object fills the input parameter
            project.getDependencies().registerTransform(ExtraModuleInfoTransform.class, t -> {
                t.parameters(p -> {
                    p.setModuleInfo(extension.getModuleInfo());
                    p.setAutomaticModules(extension.getAutomaticModules());
                });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/CrashingBuildsArtifactTransformIntegrationTest.groovy

            if (parameters.broken.get()) {
                Runtime.runtime.halt(1)
            }
            def two = outputs.file("two")
            two.text = "two"
        }
    }
    
    dependencies {
        registerTransform(ToColor) {
            from.attribute(type, "jar")
            to.attribute(type, "red")
            parameters {
                color = Color.Red
                broken = providers.systemProperty("crash").map { true }.orElse(false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-relocate/kotlin/build.gradle.kts

    configurations.create("externalClasspath")
    
    val usage = Attribute.of("usage", String::class.java)
    val artifactType = Attribute.of("artifactType", String::class.java)
    
    dependencies {
        registerTransform(ClassRelocator::class) {
            from.attribute(artifactType, "jar")
            to.attribute(artifactType, "relocated-classes")
            parameters {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top