Function
New
(
// 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.
// +defaultPath="/sdk/java"
// +ignore=["**", "!dagger-codegen-maven-plugin/", "!dagger-java-annotation-processor/", "!dagger-java-sdk/", "!dagger-java-samples/pom.xml", "!LICENSE", "!README.md", "!pom.xml", "**/src/test", "**/target"]
sdkSourceDir *dagger.Directory,
)
Source from the content-addressed store, hash-verified
| 44 | } |
| 45 | |
| 46 | func New( |
| 47 | // Directory with the Java SDK source code. |
| 48 | // dagger-java-samples is not necessary to build, but as it's referenced in the root pom.xml maven |
| 49 | // will check if it's there. So we keep the pom.xml to fake it. |
| 50 | // +defaultPath="/sdk/java" |
| 51 | // +ignore=["**", "!dagger-codegen-maven-plugin/", "!dagger-java-annotation-processor/", "!dagger-java-sdk/", "!dagger-java-samples/pom.xml", "!LICENSE", "!README.md", "!pom.xml", "**/src/test", "**/target"] |
| 52 | sdkSourceDir *dagger.Directory, |
| 53 | ) (*JavaSdk, error) { |
| 54 | if sdkSourceDir == nil { |
| 55 | return nil, fmt.Errorf("sdk source directory not provided") |
| 56 | } |
| 57 | return &JavaSdk{ |
| 58 | SDKSourceDir: sdkSourceDir, |
| 59 | MavenErrors: false, |
| 60 | }, nil |
| 61 | } |
| 62 | |
| 63 | func (m *JavaSdk) WithConfig( |
| 64 | // +default=false |
Tested by
no test coverage detected