Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getSectionName (0.27 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/ConstraintsBuilder.groovy

     */
    
    package org.gradle.integtests.fixtures.polyglot
    
    import groovy.transform.CompileStatic
    
    @CompileStatic
    class ConstraintsBuilder extends AbstractDependenciesBuilder {
        @Override
        String getSectionName() {
            'constraints'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 857 bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/DependenciesBuilder.groovy

     */
    
    package org.gradle.integtests.fixtures.polyglot
    
    import groovy.transform.CompileStatic
    
    @CompileStatic
    class DependenciesBuilder extends AbstractDependenciesBuilder {
        @Override
        String getSectionName() {
            'dependencies'
        }
    
        DependenciesBuilder constraints(@DelegatesTo(value = ConstraintsBuilder, strategy = Closure.DELEGATE_FIRST) Closure<?> spec) {
            def builder = new ConstraintsBuilder()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/RepositoriesBuilder.groovy

    import org.gradle.test.fixtures.dsl.GradleDsl
    
    @CompileStatic
    class RepositoriesBuilder extends MultiSectionHandler implements SectionBuilder {
        @Override
        String getSectionName() {
            'repositories'
        }
    
        void mavenCentral() {
            sections << new SectionBuilder() {
                @Override
                String generateSection(GradleDsl dsl) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/VersionSpec.groovy

     */
    
    package org.gradle.integtests.fixtures.polyglot
    
    import groovy.transform.CompileStatic
    
    @CompileStatic
    class VersionSpec extends MultiSectionHandler {
    
        @Override
        String getSectionName() {
            "version"
        }
    
        void rejectAll() {
            sections << new SimpleSection("rejectAll()")
        }
    
        void prefer(String version) {
            sections << new GenericSection({
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/ConfigurationSpec.groovy

        private final Supplier<Boolean> isCreate
    
        ConfigurationSpec(String name, Supplier<Boolean> isCreate) {
            this.name = name
            this.isCreate = isCreate
        }
    
        @Override
        String getSectionName() {
            name
        }
    
        void extendsFrom(String... superConfs) {
            sections.add(new GenericSection({
                "extendsFrom ${superConfs.join(',')}"
            }, {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/ConfigurationsBuilder.groovy

        final Set<String> alreadyCreated
    
        ConfigurationsBuilder(Set<String> alreadyCreated) {
            this.alreadyCreated = alreadyCreated
        }
    
        @Override
        String getSectionName() {
            "configurations"
        }
    
        Object propertyMissing(String name) {
            sections << new ConfigurationCreation(new GenericSection({ name }, {
                if (alreadyCreated.add(name)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/MultiSectionHandler.groovy

            sections << new GenericSection(groovyDsl, kotlinDsl)
            this
        }
    
        T section(String groovyDsl, String kotlinDsl) {
            section({ groovyDsl }, { kotlinDsl })
        }
    
        String getSectionName() {
            null
        }
    
        @Override
        String generateSection(GradleDsl dsl) {
            if (sectionName) {
                def name = escapeSectionName(dsl)
                """${name} {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/AbstractDependenciesBuilder.groovy

            private VersionSpec version
    
            DetailedDependencySpec(String baseNotation) {
                this.baseNotation = baseNotation
            }
    
            @Override
            String getSectionName() {
                baseNotation
            }
    
            void because(String reason) {
                sections << new GenericSection(
                    {
                        "because '$reason'"},
                    {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top