harness-auth-common module contains auth server protocol case classes which can be used via dependency:
"com.actionml" %% "harness-auth-common" % <version>
Requirements:
- OpenJDK 8
- Maven 3
To build auth server you can install the given prerequisites into your system and run make build
or use pre-configured SDK container. We recommend to use actionml/harness-sdk docker container image to perform build.
If you want to build Harness with a locally built harness-auth-server
, which is the typical case since there is no tar published yet, do the following.
make build
make publish-local
This will put harness dependencies in the local .ivy2 cache so when you build harness you will not get missing dependencies. Harness does not need to run with the harness-auth-server (when not using authentication) but does have dependencies on the client API supplied by this build.
git clone https://github.com/actionml/harness-auth-server.git
docker run -u $(id -u):$(id -g) -ti --rm \
-v $(pwd)/harness-auth-server:/code \
-w /code actionml/harness-sdk \
make build
The built distribution will be available in harness-auth-server/dist
directory.
First gpg keys should be created and sent to key server (https://www.scala-sbt.org/sbt-pgp/usage.html).
Then artifacts can be signed and published via sbt harnessAuthCommon/publishSigned
, and then released via sbt sonatypeRelease
.