Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Scala Gradle Application
  2. The first step is to create a folder for the new project and change directory into it.
  3.  
  4. $ mkdir building-scala-gradle-project
  5.  
  6. $ cd building-scala-gradle-project
  7.  
  8. Run the init task From inside the new project directory, run the init task with the scala-library argument.
  9.  
  10. $ gradle init --type scala-library
  11.  
  12. :wrapper
  13.  
  14. :init
  15.  
  16. BUILD SUCCESSFUL in 4s
  17.  
  18. 2 actionable tasks: 2 executed
  19.  
  20. Add the below plugin in to the build.gradle file to see the scala test running with Junit in console
  21.  
  22. id 'com.adarshr.test-logger' version '1.2.0'
  23.  
  24. Run the below command to see the test result
  25.  
  26. $./gradlew clean test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement