Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for inCatalog (0.16 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/api/internal/catalog/problems/VersionCatalogErrorMessages.groovy

        }
    
        private static <T extends InCatalog<T>> String buildMessage(Class<T> clazz, VersionCatalogProblemId id, Closure<?> spec) {
            def desc = clazz.newInstance()
            desc.section = id.name().toLowerCase()
            spec.delegate = desc
            spec.resolveStrategy = Closure.DELEGATE_FIRST
            spec()
            desc.build()
        }
    
        abstract static class InCatalog<T extends InCatalog<T>> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 09 14:11:31 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/DefaultVersionCatalogBuilderTest.groovy

            when:
            builder.library("foo", notation)
    
            then:
            InvalidUserDataException ex = thrown()
            verify(ex.message, invalidDependencyNotation {
                inCatalog('libs')
                usingSettingsApi()
                invalidNotation(notation)
                alias('foo')
            })
            where:
            notation << ["", "a", "a:", "a:b", ":b", "a:b:", ":::", "a:b:c:d"]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Dec 17 22:25:43 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/TomlDependenciesExtensionIntegrationTest.groovy

                        }
                    }
                }
            """
    
            when:
            fails ':help'
    
            then:
            verifyContains(failure.error, missingCatalogFile {
                inCatalog('libs')
                missing(path)
            })
    
            and:
            verifyAll(receivedProblem) {
                fqid == 'dependency-version-catalog:catalog-file-does-not-exist'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 33K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/catalog/parser/TomlCatalogFileParserTest.groovy

            when:
            parse('one-bundle')
    
            then:
            InvalidUserDataException ex = thrown()
            verify(ex.message, undefinedAliasRef {
                inCatalog('libs')
                bundle('guava')
                aliasRef('hello')
            })
        }
    
        def "parses a file with a single version and nothing else"() {
            when:
            parse('one-version')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 05:41:21 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/VersionCatalogExtensionIntegrationTest.groovy

                        }
                    }
                }
            """
    
            when:
            fails()
    
            then:
            verifyContains(failure.error, aliasNotFinished {
                inCatalog("libs")
                alias("my.great.lib")
            })
    
            and:
            verifyAll(receivedProblem) {
                fqid == 'dependency-version-catalog:alias-not-finished'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 13:37:31 UTC 2024
    - 77.8K bytes
    - Viewed (0)
Back to top