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 { plugins {
kotlin("jvm") version "1.4.10" kotlin("jvm") version "1.4.10"
application application
id("com.github.johnrengelman.shadow") version "6.1.0"
} }
group = "ru.inr.mass" group = "ru.inr.mass"
version = "1.1.0" version = "1.1.0"
description = "Numass trapping simulation" description = "Numass trapping simulation"
application { application {
mainClassName = "ru.inr.mass.trapping.MainKt" mainClassName = "ru.inr.mass.trapping.MainKt"
} }