Converts `[test]compile` dependencies to their `j2objcTranslationClosure` and/or `j2objc[Test]Linkage` equivalents, depending on the type of dependency and whether or not they are already provided in native code:
External classfile .jar libraries you depend on via `compile` will be converted to `j2objcTranslationClosure` dependencies of the corresponding source .jar libraries. Gradle projects you depend on via `compile` or `testCompile` will be converted to `j2objcLinkage` or `j2objcTestLinkage` dependencies of the corresponding generated Objective C include headers and static library. See DependencyResolver for details on the differences between these configurations. They will be resolved to appropriate `j2objc` constructs using DependencyResolver.| Type | Name and description |
|---|---|
static java.util.List<java.lang.String> |
J2OBJC_DEFAULT_LIBS |
J2objcConfig |
j2objcConfig |
org.gradle.api.Project |
project |
| Constructor and description |
|---|
DependencyConverter
(org.gradle.api.Project project, J2objcConfig j2objcConfig) |
| Type | Name and description |
|---|---|
void |
configureAll() |
protected void |
failOnBuildClosureForTests(org.gradle.api.artifacts.Dependency dep, boolean isTest) |
protected void |
visit(org.gradle.api.artifacts.Dependency dep, boolean isTest) |
protected void |
visitExternalModuleDependency(org.gradle.api.artifacts.ExternalModuleDependency dep, boolean isTest) |
protected void |
visitGenericDependency(org.gradle.api.artifacts.Dependency dep, boolean isTest) |
protected void |
visitProjectDependency(org.gradle.api.artifacts.ProjectDependency dep, boolean isTest) |
protected void |
visitSelfResolvingDependency(org.gradle.api.artifacts.SelfResolvingDependency dep, boolean isTest) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation