java-sdk
Runtime module for the Java SDK
Installation
dagger install github.com/lgtdio/dagger/sdk/java@13f8afc15a1d452f11ed247afd00bbf59363ba6a
Entrypoint
Return Type
JavaSdk !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
sdkSourceDir | Directory | - | Directory with the Java SDK source code. dagger-java-samples is not necessary to build, but as it's referenced in the root pom.xml maven will check if it's there. So we keep the pom.xml to fake it. |
Example
func (m *myModule) example() *JavaSdk {
return dag.
JavaSdk()
}
Types
JavaSdk 🔗
sdksourceDir() 🔗
Return Type
Directory !
Example
func (m *myModule) example() *Directory {
return dag.
JavaSdk().
SdksourceDir()
}
codegen() 🔗
Return Type
GeneratedCode !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | File ! | - | No description provided |
Example
func (m *myModule) example(modSource *ModuleSource, introspectionJson *File) *GeneratedCode {
return dag.
JavaSdk().
Codegen(modSource, introspectionJson)
}
moduleRuntime() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
modSource | ModuleSource ! | - | No description provided |
introspectionJson | File ! | - | No description provided |
Example
func (m *myModule) example(modSource *ModuleSource, introspectionJson *File) *Container {
return dag.
JavaSdk().
ModuleRuntime(modSource, introspectionJson)
}