Include assembly jar in release (#96)
* [sbt] set name for assembly jar * [travis] run assembly prior to release * [sbt] disable publishing non-cli or thorp-lib modules * [travis] alternate format for multiple commands in script
This commit is contained in:
parent
708f3697ee
commit
4574e2c535
2 changed files with 9 additions and 1 deletions
|
@ -17,7 +17,9 @@ jobs:
|
|||
- stage: test
|
||||
script: sbt ++$TRAVIS_SCALA_VERSION test
|
||||
- stage: release
|
||||
script: sbt ++$TRAVIS_SCALA_VERSION ci-release
|
||||
script:
|
||||
- sbt ++$TRAVIS_SCALA_VERSION assembly
|
||||
- sbt ++$TRAVIS_SCALA_VERSION ci-release
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.sbt/1.0/dependency
|
||||
|
|
|
@ -59,6 +59,7 @@ val catsEffectsSettings = Seq(
|
|||
lazy val thorp = (project in file("."))
|
||||
.settings(commonSettings)
|
||||
.aggregate(cli, `thorp-lib`, `storage-aws`, core, `storage-api`, domain)
|
||||
.settings(skip in publish := true)
|
||||
|
||||
lazy val cli = (project in file("cli"))
|
||||
.settings(commonSettings)
|
||||
|
@ -66,6 +67,7 @@ lazy val cli = (project in file("cli"))
|
|||
.settings(applicationSettings)
|
||||
.settings(commandLineParsing)
|
||||
.settings(testDependencies)
|
||||
.settings(assemblyJarName in assembly := "thorp.jar")
|
||||
.dependsOn(`thorp-lib`)
|
||||
|
||||
lazy val `thorp-lib` = (project in file("thorp-lib"))
|
||||
|
@ -78,6 +80,7 @@ lazy val `storage-aws` = (project in file("storage-aws"))
|
|||
.settings(assemblyJarName in assembly := "storage-aws.jar")
|
||||
.settings(awsSdkDependencies)
|
||||
.settings(testDependencies)
|
||||
.settings(skip in publish := true)
|
||||
.dependsOn(core % "compile->compile;test->test")
|
||||
|
||||
lazy val core = (project in file("core"))
|
||||
|
@ -85,11 +88,13 @@ lazy val core = (project in file("core"))
|
|||
.settings(assemblyJarName in assembly := "core.jar")
|
||||
.settings(testDependencies)
|
||||
.dependsOn(`storage-api`)
|
||||
.settings(skip in publish := true)
|
||||
.dependsOn(domain % "compile->compile;test->test")
|
||||
|
||||
lazy val `storage-api` = (project in file("storage-api"))
|
||||
.settings(commonSettings)
|
||||
.settings(assemblyJarName in assembly := "storage-api.jar")
|
||||
.settings(skip in publish := true)
|
||||
.dependsOn(domain)
|
||||
|
||||
lazy val domain = (project in file("domain"))
|
||||
|
@ -97,3 +102,4 @@ lazy val domain = (project in file("domain"))
|
|||
.settings(assemblyJarName in assembly := "domain.jar")
|
||||
.settings(catsEffectsSettings)
|
||||
.settings(testDependencies)
|
||||
.settings(skip in publish := true)
|
||||
|
|
Loading…
Reference in a new issue