CLI interface in README.md

This commit is contained in:
Alexander Nozik 2020-11-02 20:55:51 +03:00
parent 7a2c1d448a
commit c4f251a148
2 changed files with 21 additions and 1 deletions

View File

@ -1 +1,19 @@
## Trapping simulation
## Trapping simulation
## Building executable
1. Create a fat jar distribution:
```
./gradlew shadowJar
```
The output file is located in `build/libs/trapping-1.1.0-all.jar`
2. Run cross-sections computations
```
java -cp trapping-1.1.0-all.jar ru.inr.mass.trapping.CrosssectionsKt
```
3. Run simulation:
```
./gradlew run
```

View File

@ -1,12 +1,14 @@
plugins {
kotlin("jvm") version "1.4.10"
application
id("com.github.johnrengelman.shadow") version "6.1.0"
}
group = "ru.inr.mass"
version = "1.1.0"
description = "Numass trapping simulation"
application {
mainClassName = "ru.inr.mass.trapping.MainKt"
}