Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for printTargetConfig (0.13 sec)

  1. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-selectionRule/tests/componentSelectionRules.sample.conf

    executable: gradle
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 107 bytes
    - Viewed (0)
  2. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/dependencymanagement/SamplesComponentSelectionRulesIntegrationTest.groovy

        @UsesSample("dependencyManagement/customizingResolution-selectionRule")
        def "can run targeted rule sample with #dsl dsl"() {
            executer.inDirectory(sample.dir.file(dsl))
    
            when:
            run "printTargetConfig"
    
            then:
            output.contains "Resolved: api-1.4.jar"
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-selectionRule/groovy/build.gradle

                        }
                    }
                }
            }
        }
    }
    // end::targeted-component-selection[]
    
    dependencies {
        targetConfig "org.sample:api:1.+"
    }
    
    tasks.register('printTargetConfig') {
        FileCollection targetConfig = configurations.targetConfig
        doLast {
            targetConfig.each { println "Resolved: ${it.name}" }
        }
    }
    
    configurations {
        sampleConfig {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:32 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-selectionRule/kotlin/build.gradle.kts

                    }
                }
            }
        }
    }
    // end::targeted-component-selection[]
    
    dependencies {
        "targetConfig"("org.sample:api:1.+")
    }
    
    tasks.register("printTargetConfig") {
        val targetConfig: FileCollection = configurations["targetConfig"]
        doLast {
            targetConfig.forEach { println("Resolved: ${it.name}") }
        }
    }
    
    configurations {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:32 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top