public final class JavaExtension
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
client()
Marks this project as a Java client of the system.
|
void |
codegen(org.gradle.api.Action<JavaCodegenExtension> config) |
void |
codegen(groovy.lang.Closure config) |
protected com.google.common.collect.ImmutableSet<java.lang.String> |
forcedDependencies()
Returns a set of dependencies whose versions should be forced.
|
JavaCodegenExtension |
getCodegen() |
void |
server()
Marks this project as a part of a Java server.
|
public JavaCodegenExtension getCodegen()
public void codegen(org.gradle.api.Action<JavaCodegenExtension> config)
public void codegen(groovy.lang.Closure config)
public void client()
Adds the io.spine:spine-client and io.spine:spine-testuil-client
dependencies to the project.
public void server()
Adds the io.spine:spine-server and io.spine:spine-testutil-server
dependencies to the project.
protected com.google.common.collect.ImmutableSet<java.lang.String> forcedDependencies()
Each set entry is a dependency spec, for example
com.google.protobuf:protobuf-java:3.9.0.
The implementors may override this method to specify the dependencies that are critical for their work and should always be resolved to some particular versions.