Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 68 for registerTransforms (0.35 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformContinuousBuildIntegrationTest.groovy

                        outputFile.text = "green"
                    }
                }
            """
    
            buildFile << """
                allprojects { p ->
                    dependencies {
                        registerTransform(MakeGreen) {
                            from.attribute(color, 'blue')
                            to.attribute(color, 'green')
                            parameters {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-minify/groovy/build.gradle

    configurations.all {
        afterEvaluate {
            if (canBeResolved) {
                attributes.attribute(minified, true) // <3>
            }
        }
    }
    // tag::artifact-transform-registration[]
    
    dependencies {
        registerTransform(Minify) {
            from.attribute(minified, false).attribute(artifactType, "jar")
            to.attribute(minified, true).attribute(artifactType, "jar")
    // end::artifact-transform-attribute-setup[]
    
            parameters {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/artifacts/transform/TransformAction.java

         *
         * <p>
         *     Do not implement this method in your subclass.
         *     Gradle provides the implementation when registering the transform action via {@link org.gradle.api.artifacts.dsl.DependencyHandler#registerTransform(Class, Action)}.
         * </p>
         */
        @Inject
        T getParameters();
    
        /**
         * Executes the transform.
         *
         * <p>This method must be implemented in the subclass.</p>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 05 15:49:03 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/initialization/CalculateTaskGraphBuildOperationIntegrationTest.groovy

                    }
                }
    
                dependencies {
                    registerTransform(SomeTransform) {
                        from.attribute(minified, false).attribute(artifactType, "jar")
                        to.attribute(minified, true).attribute(artifactType, "jar")
                    }
                    registerTransform(SomeTransform) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/PathTraversalCheckerIntegrationTest.groovy

                        println "Executing unzip transform..."
                        super.transform(outputs)
                    }
                }
    
                dependencies {
                    registerTransform(TestUnzipTransform) {
                        from.attribute(artifactType, "zip").attribute(compressed, true)
                        to.attribute(artifactType, "directory").attribute(compressed, false)
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformOfDirectoriesIntegrationTest.groovy

                }
                configurations {
                    compile
                }
                dependencies {
                    compile files(producer.output)
    
                    registerTransform(MakeSize) {
                        from.attribute(artifactType, 'directory')
                        to.attribute(artifactType, 'size')
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top