👉 Scala maven project skeleton and simple show case of common scala ecosystem libs.
- joint-compile configuration for scala and java
- logging lib configuration: scala use scala-logging, java use slf4j
- test libs configuration: scalatest/Spec2/scalacheck/JUnit
- mock libs configuration: mockito/scalamock
- poso(Plain Old Scala Object)/pojo class (use between languages)
- scala/java hello world main class (invoke between languages)
- scala/java class implements java interface(compatibility safer)
- scala: ScalaHelloWorld
- java: JavaHelloWorld
- Logging
- scala: ScalaLogDemo
- java: JavaLogDemo
- Spec2/scalatest/scalacheck/JUnit test by scala/java
- scala:
- Spec2: Spec2_HelloWorld_Test
- scalatest: TODO
- scalacheck: BasicScalaCheckPropertiesTest
This is a scalacheck standalone test, somvn test
can not recognize it, butIDEA
can.
More practical usage should integrate scalacheck withscalatest
orSpec2
, so can be recognized bymaven test
. TODO - JUnit: Hello_Junit4ByScala_Test
- java:
- scala: