From fd1c1db7e6e719a525656f72f37928f7c5d942ff Mon Sep 17 00:00:00 2001 From: Jendrik Johannes Date: Mon, 10 Jul 2023 07:10:12 +0200 Subject: [PATCH] Remove require transitive methods Use case for this is 'whitebox testing', which has no transitive dependencies (there is no 'terstApi' configuration). --- .../javamodule/dependencies/dsl/AllDirectives.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/java/org/gradlex/javamodule/dependencies/dsl/AllDirectives.java b/src/main/java/org/gradlex/javamodule/dependencies/dsl/AllDirectives.java index c0f0b91..d6354e1 100644 --- a/src/main/java/org/gradlex/javamodule/dependencies/dsl/AllDirectives.java +++ b/src/main/java/org/gradlex/javamodule/dependencies/dsl/AllDirectives.java @@ -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); - } }