-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Presently the build file specifies
implementation("com.google.elemental2:elemental2-dom:1.0.0-RC1")
implementation("com.google.elemental2:elemental2-core:1.0.0-RC1")
implementation("com.google.jsinterop:base:1.0.0-RC1")
which results in a pom file where each of these three are set to have scope=runtime. Normally this isn't an issue when you assume that all attached artifacts are themselves already compiled, but in order to build each dependency recursively in j2cl with its own compile-time classpath, this results in j2cl running on the sources of this project and no compile time dependencies at all. Since the sources files of this project do reference various elemental2.dom.*
and jsinterop.base.*
classes, it ends up failing.
I think that these dependencies should be updated to use compile()
instead, though my gradle knowledge is weak enough that I'm not clear on how building gwt-http is successful to begin with without those items on the compile-time classpath. Assuming then that implementation()
is correct, is it possible to convince gradle to emit a more accurate pom.xml that indicates that these three jars are in fact compile time dependencies, and not just provided at runtime?