Change the output file name to "play dist" using the command line

Is it possible to change the name of the output play dist file other than changing appName to Build.scala ?

I am trying to automate the creation of two different zip files from the same project tree, for example: myapp-production-1.0-SNAPSHOT.zip and myapp-integration-1.0-SNAPSHOT.zip .

Thank you very much!

+6
source share
3 answers

For Play Framework 2.4, changing the name of the output file worked as follows in the build.sbt file:

 packageName in Universal := "dist" 
+6
source

In Play Framework 2.2, you can add the following line to the build.sbt file:

 name in Universal := "dist" 

Your application will be packaged in target / universal / dist.zip

+5
source

You can change the output by changing the build.sbt file in the project directory.

 name := "myname" version := "1.0-SNAPSHOT" 

Remember to recompile, you may also need to clean it.

0
source

Source: https://habr.com/ru/post/951218/


All Articles