Skip to content

Commit 7e4b6cc

Browse files
committed
java-sdk: compile the entrypoint against the prebuilt SDK jars [1B]
Pass -Ddagger.sdk=prebuilt to the entrypoint compile so it activates the dagger-prebuilt-sdk profile and compiles only the module's own sources against the SDK jars installed by vendoredSdk, instead of recompiling the ~146 vendored SDK source files on every generate. Revert just this commit to fall back to the source-compiled entrypoint. Signed-off-by: Yves Brissaud <yves@dagger.io>
1 parent ae59bff commit 7e4b6cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mod.dang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ type Mod {
134134
.withDirectory("/module", moduleDir)
135135
.withWorkdir("/module")
136136
.withEnvVariable("_DAGGER_JAVA_SDK_MODULE_NAME", name)
137-
.withExec(["mvn", "compile", "-Ddagger.proc=full", "--no-transfer-progress"])
137+
.withExec(["mvn", "compile", "-Ddagger.proc=full", "-Ddagger.sdk=prebuilt", "--no-transfer-progress"])
138138
.directory("/module/target/generated-sources/annotations")
139139
}
140140

0 commit comments

Comments
 (0)