A Giter8 template for creating a new project using the latest Akka-HTTP libraries and best practises suggested by the Cake Team.
To use, ensure that you have SBT 0.13.13 or higher installed.
Then:
sbt cakeNew cakesolutions/akka-http-template.g8
You will be asked to fill out some properties required for correctly building your project, once complete giter8
will
create an SBT project layout with our opinionated layout and configuration. You can now move to your new project it
will have all of the lovely features outlined above. This should free you up to solve the really tough problems in the
project.
Following the creation of a project, you will need to configure the following additional items (they are all identified
by FIXME
s):
sbt.resolvers
- this file should ideally be pinned to use a project specific Nexus or Artifactory for caching and managing project library dependencies. All resolver settings should be placed in this file.build.sbt
- this file needs the following autoplugin setting keys to be configured:snapshotRepositoryResolver
- this URL should point to the Nexus or Artifactory snapshot repositoryrepositoryResolver
- this URL should point to the Nexus or Artifactory publishing repositoryissueManagementUrl
- this URL should point to the Jira project management APIissueManagementProject
- this string should name the Jira project against which the project code is managed.
project/ProjectPlugin.scala
- this file needs the following autoplugin setting keys to be configured:startYear
- this integer list should be set to the yers that copyrights will be enforced in and fromlicenses
- this should be altered to the particular commercial or open source license that a project will useheaderLicense
- this should be altered to the particular commercial or open source license comment header that will be added to each file.
This template will be an evolving opinion, PRs are welcome.
To test the output of the template you can run it locally with the following command:
sbt cakeNew file://./akka-http-template.g8
In order to release version X.Y.Z
of the akka-http-template.g8
template, perform the following actions:
git tag -s vX.Y.Z
git push --tags
Releasing of templates is simply a matter of adding tags to the github repository.