Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kyri-petrou
Copy link
Contributor

@kyri-petrou kyri-petrou commented Nov 16, 2024

Since in the near future we'll be adding a number of new modules to this repo, it's a good idea to clean up and optimize the build as much as possible, and reduce the differences between Scala 2 and Scala 3 builds / CI.

Main changes:

  1. Remove circular dependency of the docs module (this was causing issues when project was opened in Metals)
  2. Cross-compile benchmarks for Scala 3. This required update of akka-streams but this should be OK given that this is only used for benchmarks
  3. Fix Scala 3 tests for the test-junit-tests module
  4. Use CrossType for modules that do not have platform-specific code to CrossType.Pure. This way we're only creating 3 SBT modules (JVM, JS, Native) when used in IntelliJ as opposed to 7 (JVM, JVM-JS, JVM-Native, JS, JS-Native, Native, Common sources). This required a number of files to be moved from <module-folder>/common/src to <module-folder>/src
  5. Declare dependency versions as vals and reuse them as much as possible

Leaving as draft till CI passes

@kyri-petrou kyri-petrou marked this pull request as ready for review November 17, 2024 04:14
guizmaii
guizmaii previously approved these changes Nov 17, 2024
@@ -1,32 +0,0 @@
import BuildHelper._
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kyri-petrou
Have you checked if the documentation website can include this tutorial after removing the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khajavi I'm not sure how to check that; where do I need to check?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly, this project's mdoc commands, compile the document and place it into the website documentation. Removing this project's build file won't generate related documentation materials for the zio website.

Copy link
Contributor Author

@kyri-petrou kyri-petrou Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The config from this build.sbt file was moved into the main build.sbt file though (see here)

I also run docs/mdoc and it was definitely being included, although I didn't check the generated artifacts. I'll double check just in case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khajavi I just double-checked and this module's documentation is included in the website artifacts (at least the ones generated by mdoc).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the check!

@kyri-petrou kyri-petrou merged commit 349c3c6 into zio:series/2.x Nov 21, 2024
@kyri-petrou kyri-petrou deleted the update-build branch November 21, 2024 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants