Questions tagged [sbt-crossproject]
11 questions
3
votes
1 answer
sbt: disable testing in certain sub-modules
My project has several module, like
server (JVM)
sharedJVM
sharedJS
client (JS)
At the moment testing does only work for the JVM modules.
What I can do is:
sbt sharedJVM/test server/test
What I want do is:
sbt test
I couldn't find a Setting to do…

pme
- 14,156
- 3
- 52
- 95
2
votes
1 answer
How do I run specific scala-test in sbt cross compile platforms?
I have sbt cross compile platforms with many modules (Android,Scalajs,Native,JVM and shared) I wanted to control the test for each module through build.sbt file by writing a flags to each test eg: I wanted to test the Android module and Jvm only so…

NaseemMahasneh
- 485
- 5
- 19
1
vote
0 answers
Is there a way to let custom sbt plugin discover which platform a Scala project targets?
I would like to develop an sbt-plugin that would auto-generate sources for Scala projects. The thing is I would like to produce slightly different sources for each targeted platform (JVM, Native, Scala.js).
Because of that, my plugin needs to detect…

przemod
- 459
- 3
- 10
1
vote
1 answer
Can the sbt-crossproject plugin support two Scala.js builds with two separate main classes, both with output managed by the scalajs-bundler plugin?
Suppose that you have a Scala.js project that compiles meaningfully to browser JavaScript, Node.js, and JVM.
Now imagine that in the browser, part of the application runs in the window while another part runs in a web worker.
Can SBT bundle two…

Ben McKenneby
- 481
- 4
- 15
0
votes
1 answer
sbt-crossproject default project has different scalaVersion than I set. Why?
I'm writing a cross-compiled library between JSPlatform and JVMPlatform using sbt-scalajs-crossproject. I've explicitly set scalaVersion in common settings and yet:
sbt:oatlibxp> show scalaVersion
[info] oatlibxpJS / scalaVersion
[info] …

bwbecker
- 1,031
- 9
- 21
0
votes
0 answers
Eventarc triggers for crossproject
I have created a cloud run service. My event arc is not triggering the cross project to read the data. How to give the event filter for resource name in event arc with insert job/Job completed to trigger to BQ table.
gcloud eventarc triggers create…
0
votes
0 answers
Intellij Idea errors on packages import in Scala Cross-platform project #27589
I'm currently trying to implement a Scala cross-platform project using the sbt-crossproject plugin.
In the shared module i can't import Scala classes of other packages.
If i compile from sbt there are no errors and the project runs correctly but…

Andrea Acampora
- 1
- 1
0
votes
1 answer
Finding some terminologies for doing R&D
I am here because I have a program and some features in my mind.
But I am not sure what these features are called in programming terms. So I am unable to even do a proper google search regarding the same. I am keen to identify what this is called,…

Tamil Ninja
- 7
- 5
0
votes
1 answer
How can I make scala.scalajs.js.typedarray classes available to JVM builds of scala.js crossprojects?
When I try to access Uint8ClampedArray from code running on the JVM, I get the error: java.lang.Error: A method defined in a JavaScript raw type of a Scala.js library has been called. This is most likely because you tried to run Scala.js binaries on…

Ben McKenneby
- 481
- 4
- 15
0
votes
0 answers
In the sbt-scalajs-crossproject plugin, how do you specificy a main class for both JS and JVM compilation targets?
I have a main class in the shared directory that fastOptJS::webpack manages to expose to the browser using the configuration:
scalaJSUseMainModuleInitializer := true,
mainClass in (Compile, run) := Some("path.to.package.Main")
However, I can't seem…

Ben McKenneby
- 481
- 4
- 15
0
votes
2 answers
Resources in Scala Cross-Project
I tried to use a file for a Unit test in a shared Module (https://github.com/portable-scala/sbt-crossproject)
I tried it in src/test/resources and src/main/resources
The resource was not copied to the .jvm/target/classes nor…

pme
- 14,156
- 3
- 52
- 95