You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
importmill._importmill.api.Looseimportmill.define.{Target, Task}
importscalalib._importcoursier.core.Resolutionimportjava.io.File// Import JavaCPP to get host OS nameimport$ivy.`org.bytedeco:javacpp:1.5.7`// Add simple mdoc support for mill// https://mvnrepository.com/artifact/org.scalameta/mdocimport$ivy.`org.scalameta::mdoc:2.3.3`//import $ivy.`org.scalameta::mdoc:2.2.4`import$ivy.`de.wayofquality.blended::de.wayofquality.blended.mill.mdoc::0.0.4-2-2f8b5e`importde.wayofquality.mill.mdoc.MDocModulevalScalaVersion="3.2.1-RC2"// "3.1.3"valmUnitVersion="1.0.0-M6"valjavaCPPVersion="1.5.7"valtensorflowVersion="0.4.1"// TF:2.7.1objecttutorialextendsScalaModulewithMDocModule {
// Also used by mill-mdocoverridedefscalaVersion=T{ ScalaVersion }
overridedefjavacOptions=T{ Seq("-source", "17", "-target", "17", "-Xlint") }
overridedefscalacOptions=T{ Seq("-deprecation", "-feature") }
// mdocoverridedefscalaMdocVersion="2.3.3"// "2.2.4"overridedefmdocSources=T.sources{ T.workspace /"docs" }
defjavaCPPPlatform=T{ org.bytedeco.javacpp.Loader.Detector.getPlatform }
overridedefivyDeps=Agg(
ivy"org.tensorflow:tensorflow-core-api:${tensorflowVersion}",
ivy"org.tensorflow:tensorflow-core-api:${tensorflowVersion};classifier=${javaCPPPlatform()}"
)
objecttestextendsTestswithTestModule.Munit {
defivyDeps=Agg(ivyMunit)
deftestFramework= ivyMunitInterface
}
}
I have tried versions of mdoc "2.3.3" and the examples "2.2.4" and get the same error. I found this. Can this be an issue with using Scala 3.x? I did find that SBT now works with the version 3 compiler.
EDIT: I also tried it with and without the line
import$ivy.`org.scalameta::mdoc:2.3.3`
but got the same result.
I also looked at the source code and googled and cannot figure out were/how mdoc can set the compiler version. Where is this done here?
TIA
The text was updated successfully, but these errors were encountered:
I have gone a little further on and found that the scala library is downloaded here and the mdoc dependency is also defined. This last line means that that dependency should be in the class path to work. With the build script above, the mdoc library and its transitive dependencies are not available.
EDIT:
I am using Mill 0.10.7. Shouldn't these dependencies be added automatically? If not, then the I think the example in the README should be changed slightly to add the dependency.
I have set-up a simple
build.sc
to use mdoc but am getting the error.I am using:
I have tried versions of mdoc "2.3.3" and the examples "2.2.4" and get the same error. I found this. Can this be an issue with using Scala 3.x? I did find that SBT now works with the version 3 compiler.
EDIT: I also tried it with and without the line
but got the same result.
I also looked at the source code and googled and cannot figure out were/how mdoc can set the compiler version. Where is this done here?
TIA
The text was updated successfully, but these errors were encountered: