Skip to content

Commit

Permalink
Remove require transitive methods
Browse files Browse the repository at this point in the history
Use case for this is 'whitebox testing', which has no transitive
dependencies (there is no 'terstApi' configuration).
  • Loading branch information
jjohannes committed Aug 7, 2023
1 parent 578a1d1 commit fd1c1db
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,8 @@ public void requires(String moduleName) {
add(sourceSet.getImplementationConfigurationName(), moduleName);
}

public void requiresTransitive(String moduleName) {
runtimeClasspathModules.add(moduleName);
compileClasspathModules.add(moduleName);
add(sourceSet.getApiConfigurationName(), moduleName);
}

public void requiresStatic(String moduleName) {
compileClasspathModules.add(moduleName);
add(sourceSet.getCompileOnlyConfigurationName(), moduleName);
}

public void requiresStaticTransitive(String moduleName) {
compileClasspathModules.add(moduleName);
add(sourceSet.getCompileOnlyApiConfigurationName(), moduleName);
}
}

0 comments on commit fd1c1db

Please sign in to comment.