-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split HAPI service from server #57
Comments
I've done the split in a branch. I'm having difficulty figuring out how to get |
The major difficulty with this split was making sure that sbt-revolver, sbt-docker, and sbt-assembly still did what we wanted them to. I needed to disable sbt-revolver on the root project and the service project because they have nothing to run. I needed to enable sbt-docker on the server project, because that's the one we want to build the Docker image for. Dealing with sbt-assembly was a little trickier. By default it will build a JAR for each project. By making the root project depend on the others and disabling aggregation for the assembly task, I was able to convince it to produce a single JAR that pulls in everything from the server and service projects. I have no idea if this is the best way of doing this, but it appears to work for our needs at the moment. See #57.
I believe I have it working, but I'll need to think on it a little bit. It feels wrong. I haven't seen a good example of an SBT build for an application that includes a reusable library. We may want to move |
It exists somewhere between the HAPI service and the HAPI server application:
|
Perhaps the LaTiS 2 stuff should be in a third module. |
See the They also use |
Ideally the HAPI service will be its own artifact that can be added to a LaTiS 3 instance.
The text was updated successfully, but these errors were encountered: