Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for excludeGroupByRegex (0.41 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/BuildscriptRepositoryContentFilteringIntegrationTest.groovy

            outputContains("org:foo:1.0")
    
            where:
            inSettings  | notation
            true        | "excludeGroup('org')"
            true        | "excludeGroupByRegex('or.+')"
            false       | "excludeGroup('org')"
            false       | "excludeGroupByRegex('or.+')"
        }
    
        def 'exclusive content filtering in settings prevents adding repositories in project'() {
            given:
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/dependencyManagement/declaringRepositories-filtering/kotlin/build.gradle.kts

                includeGroup("my.company")
            }
        }
        mavenCentral {
            content {
                // this repository contains everything BUT artifacts with group starting with "my.company"
                excludeGroupByRegex("my\\.company.*")
            }
        }
    }
    // end::repository-filter[]
    
    // tag::exclusive-repository-filter[]
    repositories {
        // This repository will _not_ be searched for artifacts in my.company
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/declaringRepositories-filtering/groovy/build.gradle

                includeGroup "my.company"
            }
        }
        mavenCentral {
            content {
                // this repository contains everything BUT artifacts with group starting with "my.company"
                excludeGroupByRegex "my\\.company.*"
            }
        }
    }
    // end::repository-filter[]
    
    // tag::exclusive-repository-filter[]
    repositories {
        // This repository will _not_ be searched for artifacts in my.company
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/RepositoryContentFilteringIntegrationTest.groovy

                root(':', ':test:') {
                    module('org:foo:1.0')
                }
            }
    
            where:
            notation << [
                    "excludeGroup('org')",
                    "excludeGroupByRegex('or.+')"
            ]
        }
    
        def "can include a module from a repository using #notation"() {
            def mod = ivyHttpRepo.module('org', 'foo', '1.0').publish()
    
            given:
            repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/DefaultRepositoryHandlerTest.groovy

            1 * repo2.content(_) >> { args ->
                args[0].execute(repo2Content)
            }
            1 * repo2Content.excludeGroupByRegex("foo")
            1 * repo3.content(_) >> { args ->
                args[0].execute(repo3Content)
            }
            1 * repo3Content.excludeGroupByRegex("foo")
            0 * _
        }
    
        def "can include module exclusively"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 18:02:33 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/artifacts/repositories/RepositoryContentDescriptor.java

        /**
         * Declares that an entire group shouldn't be searched for in this repository.
         *
         * @param groupRegex the group name regular expression
         */
        void excludeGroupByRegex(String groupRegex);
    
        /**
         * Declares that an entire module shouldn't be searched for in this repository.
         *
         * @param group the group name
         * @param moduleName the module name
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 10 23:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/DefaultRepositoryHandler.java

                    desc.excludeGroupAndSubgroups(groupPrefix);
                }
    
                @Override
                public void includeGroupByRegex(String groupRegex) {
                    desc.excludeGroupByRegex(groupRegex);
                }
    
                @Override
                public void includeModule(String group, String moduleName) {
                    desc.excludeModule(group, moduleName);
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 15:16:47 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/DefaultRepositoryContentDescriptorTest.groovy

            then:
            ex = thrown()
            ex.message == "Group cannot be null"
        }
    
        def "reasonable error message when input is incorrect (exclude regex)"() {
            when:
            descriptor.excludeGroupByRegex(null)
    
            then:
            IllegalArgumentException ex = thrown()
            ex.message == "Group regex cannot be null"
    
            when:
            descriptor.excludeModuleByRegex("foo", null)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/DefaultRepositoryContentDescriptor.java

            checkNotNull(groupPrefix, "Group prefix cannot be null");
            addExclude(groupPrefix, null, null, MatcherKind.SUB_GROUP);
        }
    
        @Override
        public void excludeGroupByRegex(String groupRegex) {
            checkNotNull(groupRegex, "Group regex cannot be null");
            addExclude(groupRegex, null, null, MatcherKind.REGEX);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top