Skip to content

Commit

Permalink
Clean up tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed May 17, 2024
1 parent ca4d6ef commit 2f51bb8
Showing 1 changed file with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,24 +211,15 @@ class FunctionalTests extends BuilderBasedTestSpecification {
}
}
//Note: This cannot be static so that fg.repository can be properly accessed
void exclusiveRepo(RepositoryHandler handler, String url, String... groups) {
handler.exclusiveContent {
it.forRepositories(handler.maven {
setUrl(url)
})
it.filter { f ->
for (def group : groups) {
f.includeGroup(group)
}
repositories {
exclusiveContent {
forRepository {
maven { url 'https://maven.tterrag.com/' }
}
filter { includeGroup('team.chisel.ctm') }
}
}
repositories {
exclusiveRepo(it, 'https://maven.tterrag.com/', 'team.chisel.ctm')
}
dependencies {
implementation 'net.neoforged:neoforge:+'
}
Expand Down

0 comments on commit 2f51bb8

Please sign in to comment.