You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For security and performance reasons, it's desirable to filter the dependency search on a specific repository. This is possible using Gradle as shown below:
repositories {
maven {
url = uri("https://repo.mycompany.com/maven2")
content {
// this repository *only* contains artifacts with group "my.company"
includeGroup("my.company")
}
}
mavenCentral {
content {
// this repository contains everything BUT artifacts with group starting with "my.company"
excludeGroupByRegex("my\\.company.*")
}
}
}
I'm using mill to build a project, which in turn uses MavenRepository for repository config.
I'd like to know if it's possible to filter dependencies in MavenRepository in a similar manner as done using Gradle.
Disclaimer: Cross-posted in coursier/coursier#3396, but it seems questions there are going unanswered for some time.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
For security and performance reasons, it's desirable to filter the dependency search on a specific repository. This is possible using Gradle as shown below:
I'm using mill to build a project, which in turn uses
MavenRepository
for repository config.I'd like to know if it's possible to filter dependencies in
MavenRepository
in a similar manner as done using Gradle.Disclaimer: Cross-posted in coursier/coursier#3396, but it seems questions there are going unanswered for some time.
Beta Was this translation helpful? Give feedback.
All reactions