Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 178 for catalogs (0.44 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/artifacts/VersionCatalogsExtension.java

    import java.util.Set;
    
    /**
     * Gives access to all version catalogs available.
     *
     * @since 7.0
     */
    public interface VersionCatalogsExtension extends Iterable<VersionCatalog> {
    
        /**
         * Tries to find a catalog with the corresponding name
         * @param name the name of the catalog
         */
        Optional<VersionCatalog> find(String name);
    
        /**
         * Returns the catalog with the supplied name or throws an exception
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 27 23:38:43 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/VersionCatalogExtensionIntegrationTest.groovy

            """
    
            buildFile << """
                def catalogs = project.extensions.getByType(VersionCatalogsExtension)
                tasks.register("verifyCatalogs") {
                    doLast {
                        def libs = catalogs.named("libs")
                        def other = catalogs.find("otherLibs").get()
                        assert !catalogs.find("missing").present
                        def lib = libs.findLibrary('lib')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 13:37:31 UTC 2024
    - 77.8K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/KotlinDslVersionCatalogExtensionIntegrationTest.groovy

            lib.pom.expectGet()
            lib.artifact.expectGet()
    
            then:
            succeeds ':checkDeps'
        }
    
        @Issue("https://github.com/gradle/gradle/issues/17874")
        def "supports version catalogs in force method of resolutionStrategy"() {
            def lib = mavenHttpRepo.module('org.gradle.test', 'lib', '1.1').publish()
            def lib2 = mavenHttpRepo.module('org.gradle.test', 'lib2', '1.1').publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 17K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/VersionCatalogGenerator.java

    import org.gradle.util.internal.GFileUtils;
    
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.nio.file.Path;
    import java.util.Collection;
    
    /**
     * Generates version catalogs based on versions, libraries and plugins tracked in the BuildContentGenerationContext's VersionCatalogDependencyRegistry.
     */
    @NonNullApi
    public class VersionCatalogGenerator {
        final Directory target;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 12:02:29 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/running-builds/introduction/dependency_management_basics.adoc

    == Version Catalog
    
    Version catalogs provide a way to centralize your dependency declarations in a `libs.versions.toml` file.
    
    The catalog makes sharing dependencies and version configurations between subprojects simple.
    It also allows teams to enforce versions of libraries and plugins in large projects.
    
    The version catalog typically contains four sections:
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 18:47:52 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/artifacts/VersionCatalog.java

    import org.gradle.api.provider.Provider;
    import org.gradle.plugin.use.PluginDependency;
    
    import java.util.List;
    import java.util.Optional;
    
    /**
     * Provides access to a version catalog. Unlike generated extension
     * classes for catalogs, there is no guarantee that the requested
     * aliases exist, so you must check existence on the returned optional
     * values.
     *
     * @since 7.0
     */
    @NonNullApi
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 25 20:59:29 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/LibrariesSourceGenerator.java

                        .details("The maximum number of aliases in a catalog is " + MAX_ENTRIES)
                        .solution("Reduce the number of aliases defined in this catalog")
                        .solution("Split the catalog into multiple catalogs")));
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 36K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/Stage1BlocksAccessorClassPath.kt

    import javax.inject.Inject
    
    
    /**
     * Produces an [AccessorsClassPath] with type-safe accessors for Stage 1 blocks such as
     * `buildscript {}` and `plugins {}`.
     *
     * Generates accessors for:
     * - dependency version catalogs found in this build,
     * - plugin spec builders for all plugin ids found in the `buildSrc` classpath.
     */
    class Stage1BlocksAccessorClassPathGenerator @Inject internal constructor(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 18:58:57 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/writing_settings_files.adoc

    [source,kotlin]
    ----
    dependencyResolutionManagement {
        repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
        repositories {
            mavenCentral()
        }
    }
    ----
    
    You can also include version catalogs in this section.
    
    === 5. Add subprojects to the build
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 04:15:25 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. subprojects/core/src/testFixtures/groovy/org/gradle/api/internal/catalog/problems/VersionCatalogErrorMessages.groovy

            String build() {
                """${intro}  - Problem: In version catalog ${catalog}, version catalog model contains too many entries (${entryCount}).
    
        Reason: The maximum number of aliases in a catalog is ${maxCount}.
    
        Possible solutions:
          1. Reduce the number of aliases defined in this catalog.
          2. Split the catalog into multiple catalogs.
    
        ${documentation}"""
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 09 14:11:31 UTC 2023
    - 17.8K bytes
    - Viewed (0)
Back to top