-
- All Implemented Interfaces:
public interface KotlinDependencyHandler
-
-
Method Summary
Modifier and Type Method Description abstract Dependency
api(Object dependencyNotation)
abstract ExternalModuleDependency
api(String dependencyNotation, Function1<ExternalModuleDependency, Unit> configure)
abstract <T extends Dependency> T
api(T dependency, Function1<T, Unit> configure)
ExternalModuleDependency
api(String dependencyNotation, Closure<?> configure)
<T extends Dependency> T
api(T dependency, Closure<?> configure)
abstract Dependency
implementation(Object dependencyNotation)
abstract ExternalModuleDependency
implementation(String dependencyNotation, Function1<ExternalModuleDependency, Unit> configure)
abstract <T extends Dependency> T
implementation(T dependency, Function1<T, Unit> configure)
ExternalModuleDependency
implementation(String dependencyNotation, Closure<?> configure)
<T extends Dependency> T
implementation(T dependency, Closure<?> configure)
abstract Dependency
compileOnly(Object dependencyNotation)
abstract ExternalModuleDependency
compileOnly(String dependencyNotation, Function1<ExternalModuleDependency, Unit> configure)
abstract <T extends Dependency> T
compileOnly(T dependency, Function1<T, Unit> configure)
ExternalModuleDependency
compileOnly(String dependencyNotation, Closure<?> configure)
<T extends Dependency> T
compileOnly(T dependency, Closure<?> configure)
abstract Dependency
runtimeOnly(Object dependencyNotation)
abstract ExternalModuleDependency
runtimeOnly(String dependencyNotation, Function1<ExternalModuleDependency, Unit> configure)
abstract <T extends Dependency> T
runtimeOnly(T dependency, Function1<T, Unit> configure)
ExternalModuleDependency
runtimeOnly(String dependencyNotation, Closure<?> configure)
<T extends Dependency> T
runtimeOnly(T dependency, Closure<?> configure)
ExternalModuleDependency
kotlin(String simpleModuleName)
abstract ExternalModuleDependency
kotlin(String simpleModuleName, String version)
ProjectDependency
project(String path, String configuration)
abstract ProjectDependency
project(Map<String, Object> notation)
Dependency
enforcedPlatform(Object notation)
Dependency
enforcedPlatform(Object notation, Action<in Dependency> configureAction)
Dependency
platform(Object notation)
Dependency
platform(Object notation, Action<in Dependency> configureAction)
abstract Dependency
npm(String name)
abstract Dependency
npm(String name, String version, Boolean generateExternals)
Dependency
npm(String name, String version)
abstract Dependency
npm(String name, File directory, Boolean generateExternals)
Dependency
npm(String name, File directory)
abstract Dependency
npm(File directory, Boolean generateExternals)
Dependency
npm(File directory)
abstract Dependency
devNpm(String name, String version)
abstract Dependency
devNpm(String name, File directory)
abstract Dependency
devNpm(File directory)
abstract Dependency
optionalNpm(String name, String version, Boolean generateExternals)
Dependency
optionalNpm(String name, String version)
abstract Dependency
optionalNpm(String name, File directory, Boolean generateExternals)
Dependency
optionalNpm(String name, File directory)
abstract Dependency
optionalNpm(File directory, Boolean generateExternals)
Dependency
optionalNpm(File directory)
abstract Dependency
peerNpm(String name, String version)
abstract Project
getProject()
-
-
Method Detail
-
api
abstract ExternalModuleDependency api(String dependencyNotation, Function1<ExternalModuleDependency, Unit> configure)
-
implementation
abstract Dependency implementation(Object dependencyNotation)
-
implementation
abstract ExternalModuleDependency implementation(String dependencyNotation, Function1<ExternalModuleDependency, Unit> configure)
-
implementation
abstract <T extends Dependency> T implementation(T dependency, Function1<T, Unit> configure)
-
implementation
ExternalModuleDependency implementation(String dependencyNotation, Closure<?> configure)
-
implementation
<T extends Dependency> T implementation(T dependency, Closure<?> configure)
-
compileOnly
abstract Dependency compileOnly(Object dependencyNotation)
-
compileOnly
abstract ExternalModuleDependency compileOnly(String dependencyNotation, Function1<ExternalModuleDependency, Unit> configure)
-
compileOnly
abstract <T extends Dependency> T compileOnly(T dependency, Function1<T, Unit> configure)
-
compileOnly
ExternalModuleDependency compileOnly(String dependencyNotation, Closure<?> configure)
-
compileOnly
<T extends Dependency> T compileOnly(T dependency, Closure<?> configure)
-
runtimeOnly
abstract Dependency runtimeOnly(Object dependencyNotation)
-
runtimeOnly
abstract ExternalModuleDependency runtimeOnly(String dependencyNotation, Function1<ExternalModuleDependency, Unit> configure)
-
runtimeOnly
abstract <T extends Dependency> T runtimeOnly(T dependency, Function1<T, Unit> configure)
-
runtimeOnly
ExternalModuleDependency runtimeOnly(String dependencyNotation, Closure<?> configure)
-
runtimeOnly
<T extends Dependency> T runtimeOnly(T dependency, Closure<?> configure)
-
enforcedPlatform
Dependency enforcedPlatform(Object notation)
-
enforcedPlatform
Dependency enforcedPlatform(Object notation, Action<in Dependency> configureAction)
-
npm
@Deprecated(message = "Declaring NPM dependency without version is forbidden") abstract Dependency npm(String name)
-
optionalNpm
abstract Dependency optionalNpm(String name, String version, Boolean generateExternals)
-
optionalNpm
Dependency optionalNpm(String name, String version)
-
optionalNpm
abstract Dependency optionalNpm(String name, File directory, Boolean generateExternals)
-
optionalNpm
Dependency optionalNpm(String name, File directory)
-
optionalNpm
abstract Dependency optionalNpm(File directory, Boolean generateExternals)
-
optionalNpm
Dependency optionalNpm(File directory)
-
getProject
abstract Project getProject()
-
-
-
-