Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for catalogs (0.56 sec)

  1. platforms/documentation/docs/src/snippets/testing/test-suite-version-catalogs/kotlin/build.gradle.kts

    }
    
    testing {
        suites {
            // tag::version-catalogs-deps[]
            val test by getting(JvmTestSuite::class) {
                dependencies {
                    runtimeOnly(libs.guava)
                    implementation(libs.commons.lang3)
                    implementation.bundle(libs.bundles.groovy)
                }
            }
            // end::version-catalogs-deps[]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 19:28:13 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/PrecompiledScriptPluginVersionCatalogIntegrationTest.kt

    class PrecompiledScriptPluginVersionCatalogIntegrationTest : AbstractKotlinIntegrationTest() {
    
        @Test
        fun `version catalogs main extension is available`() {
            withKotlinBuildSrc()
            withSimpleVersionCatalog()
            val scriptBody = """
                // Can use outer build version catalog when applied
                println(versionCatalogs.named("libs").findLibrary("groovy").get().get())
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 08:15:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testing/test-suite-version-catalogs/groovy/build.gradle

    repositories {
        mavenCentral()
    }
    
    testing {
        suites {
            // tag::version-catalogs-deps[]
            test {
                dependencies {
                    runtimeOnly libs.guava
                    implementation libs.commons.lang3
                    implementation.bundle(libs.bundles.groovy)
                }
            }
            // end::version-catalogs-deps[]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 19:28:13 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/api/initialization/resolve/DependencyResolutionManagement.java

        /**
         * Configures the version catalogs which will be used to generate type safe accessors for dependencies.
         * @param spec the spec to configure the dependencies
         *
         * @since 7.0
         */
        void versionCatalogs(Action<? super MutableVersionCatalogContainer> spec);
    
        /**
         * Returns the configurable version catalogs.
         *
         * @since 7.0
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:16:59 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/configuration/BuildTreePreparingProjectsPreparer.java

            Instrumented.fileObserved(dependenciesFile, getClass().getName());
            if (dependenciesFile.exists()) {
                dm.versionCatalogs(catalogs -> {
                    VersionCatalogBuilder builder = catalogs.findByName(defaultLibrary);
                    if (builder == null) {
                        builder = catalogs.create(defaultLibrary);
                    }
                    builder.from(services.get(FileCollectionFactory.class).fixed(dependenciesFile));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 01 14:00:32 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/troubleshooting/version_catalog_problems.adoc

    Typically, this happens if you tried to import a catalog using `from(files("some-catalog.txt"))`.
    
    Currently Gradle only supports TOML version catalogs.
    
    To fix this problem, either import a TOML file, or use the `Settings` API to declare your catalog.
    
    [[catalog_file_does_not_exist]]
    == Catalog file doesn't exist
    
    This error indicates that you tried to import a catalog file, but the file doesn't exist.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jan 13 21:49:09 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/initialization/resolve/MutableVersionCatalogContainer.java

     */
    package org.gradle.api.initialization.resolve;
    
    import org.gradle.api.NamedDomainObjectContainer;
    import org.gradle.api.initialization.dsl.VersionCatalogBuilder;
    
    /**
     * The container for declaring version catalogs
     *
     * @since 7.0
     */
    public interface MutableVersionCatalogContainer extends NamedDomainObjectContainer<VersionCatalogBuilder> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 27 23:38:43 UTC 2021
    - 962 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top