This is an automated email from the ASF dual-hosted git repository.

hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new 0bb2e8668b doc: how to set version number in build (#350)
0bb2e8668b is described below

commit 0bb2e8668b2a77fe9b57a5ab61a96d9c6e70317f
Author: PJ Fanning <[email protected]>
AuthorDate: Mon May 29 13:08:10 2023 +0100

    doc: how to set version number in build (#350)
    
    * version-number-in-build
    
    * Update README.md
---
 README.md | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 50a82cbcf8..587f505aba 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ See https://pekko.apache.org for the documentation including 
the API docs. The d
 ### Running the Build
 - Open a command window and change directory to your preferred base directory
 - Use git to clone the [repo](https://github.com/apache/incubator-pekko) or 
download a source release from https://pekko.apache.org (and unzip or untar it, 
as appropriate)
-- Change directory to the directory where you installed the source
+- Change directory to the directory where you installed the source (you should 
have a file called `build.sbt` in this directory)
 - `sbt compile` compiles the main source for project default version of Scala 
(2.13)
     - `sbt +compile` will compile for all supported versions of Scala
 - `sbt test` will compile the code and run the unit tests
@@ -39,6 +39,12 @@ See https://pekko.apache.org for the documentation including 
the API docs. The d
      - the `index.html` file will appear in `target/paradox/site/main/`
 - `sbt unidoc` will build the Javadocs for all the modules and load them to 
one place (may require Graphviz, see Prerequisites above)
      - the `index.html` file will appear in `target/scala-2.13/unidoc/`
+- `sbt sourceDistGenerate` will generate source release to `target/dist/`
+- The version number that appears in filenames and docs is derived, by 
default. The derived version contains the most git commit id or the date/time 
(if the directory is not under git control). 
+    - You can set the version number explicitly when running sbt commands
+        - eg `sbt "set ThisBuild / version := \"1.0.0\"; sourceDistGenerate"`  
+    - Or you can add a file called `version.sbt` to the same directory that 
has the `build.sbt` containing something like
+        - `ThisBuild / version := "1.0.0"` 
 
 ## Community
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to