2018-10-27 09:41:21 +00:00
# WALA for DASCA
2017-05-17 20:44:01 +00:00
2018-10-27 09:41:21 +00:00
This is a fork of WALA, tracking minor bug-fixes and enhancements required for
[DASCA ](https://git.logicalhacking.com/DASCA/DASCA ).
## Integrating Updates from Upstream
After cloning the repostistory, you need to manually configure the upstream URL
of the remote fork:
``` sh
git remote add upstream https://github.com/wala/WALA.git
2017-05-26 19:39:08 +00:00
```
2018-10-27 09:41:21 +00:00
The default steps for merging with upstream are:
``` sh
2017-05-17 20:44:01 +00:00
git fetch upstream
git checkout master
git merge upstream/master
2017-05-26 19:39:08 +00:00
```
2018-10-27 09:41:21 +00:00
## Building Artifacts
This fork uses the gradle setup of the WALA build system. Thus, for details, please
consult the instructions in the file [README-Gradle ](README-Gradle.md ). In general,
for rebuilding all WALA artifacts, use:
``` sh
./gradlew clean assemble
```
## Publishing Artifacts
### Configuration
For publishing artifacts, you need to configure the username and password required
for uploading to the remote artifacts repository, i.e., you need to add the following
properties to your `GRADLE_USER_HOME/gradle.properties` (default: `$HOME/.gradle/gradle.properties` )
file:
``` gradle
comLogicalhackingArtifactsUser=< USER >
comLogicalhackingArtifactsPassword=< PASSWORD >
```
### Preparation
2018-10-27 13:45:13 +00:00
Before publishing new artifacts to the artifacts repository, please update the version identifier in the file `build.gradle` by removing the `SNAPSHOT` postfix
and updating the `<WALAVERSION>` identifier.
2018-10-27 09:41:21 +00:00
``` gradle
2018-10-27 13:45:13 +00:00
version '< WALAVERSION > .[R|S].DASCA.< DASCAVERSION > '
2018-10-27 09:41:21 +00:00
```
2018-10-27 09:50:07 +00:00
with the version that should be published. Next, commit your changes and tag the
new version:
2018-10-27 09:41:21 +00:00
``` gradle
2018-10-27 09:50:07 +00:00
git commit -m "Preparing release of version < VERSION > ." build.gradle
2018-10-27 09:41:21 +00:00
git tag -s "< VERSION > " -m "Tagging version < VERSION > ."
```
2018-10-27 09:50:07 +00:00
Finally, mark the development version by appending `-SNAPSHOT`
``` gradle
2018-10-27 13:45:13 +00:00
version '< WALAVERSION > .[R|S].DASCA.< DASCAVERSION > -SNAPSHOT'
2018-10-27 09:50:07 +00:00
```
and commit your changes:
``` gradle
git commit -m "Marked development version" build.gradle
```
2018-10-27 09:41:21 +00:00
### Uploading Artifacts
Publishing artifacts is as easy as calling
``` sh
./gradlew publish
```