Skip to content

Commit 4eccf85

Browse files
authored
Merge pull request #24 from srlearn/readme-gradle-recommendation
📝 Adjust build recommendations to use gradlew
2 parents 189f3d6 + 86ec45a commit 4eccf85

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

Diff for: README.md

+15-17
Original file line numberDiff line numberDiff line change
@@ -52,62 +52,60 @@ where slower, more effective learning is critical.
5252

5353
SRLBoost project structure still closely mirrors other implementations.
5454

55-
Currently this can be built as a [Maven](https://maven.apache.org/) package targeting Java 8.
55+
We're using [Gradle](https://gradle.org/) to help with building and testing, targeting Java 8.
5656

5757
### Windows Quickstart
5858

59-
1. Open Windows Terminal in Administrator mode, and use [Chocolatey](https://chocolatey.org/) to install Maven and a Java Development Kit.
59+
1. Open Windows Terminal in Administrator mode, and use [Chocolatey](https://chocolatey.org/) (or your preferred package manager) to install a Java Development Kit.
6060

6161
```bash
62-
$ choco install openjdk
63-
$ choco install maven
62+
choco install openjdk
6463
```
6564

6665
2. Clone and build the package.
6766

6867
```bash
69-
$ git clone https://github.com/hayesall/SRLBoost.git
70-
$ cd .\SRLBoost\
71-
$ mvn package
68+
git clone https://github.com/srlearn/SRLBoost.git
69+
cd .\SRLBoost\
70+
.\gradlew build
7271
```
7372

7473
3. Learn with a basic data set (switching the `X.Y.Z`):
7574

7675
```bash
77-
$ java -jar .\target\srlboost-X.Y.Z-jar-with-dependencies.jar -l -train .\data\Toy-Cancer\train\ -target cancer
76+
java -jar .\build\libs\srlboost-X.Y.Z.jar -l -train .\data\Toy-Cancer\train\ -target cancer
7877
```
7978

8079
4. Query the model on the test set (again, swtiching the `X.Y.Z`)
8180

8281
```bash
83-
$ java -jar .\target\srlboost-X.Y.Z-jar-with-dependencies.jar -i -model .\data\Toy-Cancer\train\models\ -test .\data\Toy-Cancer\test\ -target cancer
82+
java -jar .\build\libs\srlboost-X.Y.Z.jar -i -model .\data\Toy-Cancer\train\models\ -test .\data\Toy-Cancer\test\ -target cancer
8483
```
8584

8685
### MacOS / Linux
8786

88-
1. Open your terminal (MacOS: <kbd>⌘</kbd> + <kbd>spacebar</kbd> + "Terminal"), and use [Homebrew](https://brew.sh) to install Maven and a Java Development Kit. (On Linux: `apt`, `dnf`, or `yum` depending on your Linux flavor).
87+
1. Open your terminal (MacOS: <kbd>⌘</kbd> + <kbd>spacebar</kbd> + "Terminal"), and use [Homebrew](https://brew.sh) to install a Java Development Kit. (On Linux: `apt`, `dnf`, or `yum` depending on your Linux flavor).
8988

9089
```bash
91-
$ brew install openjdk
92-
$ brew install maven
90+
brew install openjdk
9391
```
9492

9593
2. Clone and build the package.
9694

9795
```bash
98-
$ git clone https://github.com/hayesall/SRLBoost.git
99-
$ cd SRLBoost/
100-
$ mvn package
96+
git clone https://github.com/hayesall/SRLBoost.git
97+
cd SRLBoost/
98+
./gradlew build
10199
```
102100

103101
3. Run a basic example (switching the `X.Y.Z`):
104102

105103
```bash
106-
$ java -jar target/srlboost-X.Y.Z-jar-with-dependencies.jar -l -train data/Toy-Cancer/train/ -target cancer
104+
java -jar build/libs/srlboost-X.Y.Z.jar -l -train data/Toy-Cancer/train/ -target cancer
107105
```
108106

109107
4. Query the model on the test set (again, swtiching the `X.Y.Z`)
110108

111109
```bash
112-
$ java -jar target/srlboost-X.Y.Z-jar-with-dependencies.jar -i -model data/Toy-Cancer/train/models/ -test data/Toy-Cancer/test/ -target cancer
110+
java -jar build/libs/srlboost-X.Y.Z.jar -i -model data/Toy-Cancer/train/models/ -test data/Toy-Cancer/test/ -target cancer
113111
```

0 commit comments

Comments
 (0)