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
|
- stage: test
|
||||||
script: sbt ++$TRAVIS_SCALA_VERSION test
|
script: sbt ++$TRAVIS_SCALA_VERSION test
|
||||||
- stage: release
|
- stage: release
|
||||||
script: sbt ++$TRAVIS_SCALA_VERSION ci-release
|
script:
|
||||||
|
- sbt ++$TRAVIS_SCALA_VERSION assembly
|
||||||
|
- sbt ++$TRAVIS_SCALA_VERSION ci-release
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.sbt/1.0/dependency
|
- $HOME/.sbt/1.0/dependency
|
||||||
|
|
|
@ -59,6 +59,7 @@ val catsEffectsSettings = Seq(
|
||||||
lazy val thorp = (project in file("."))
|
lazy val thorp = (project in file("."))
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
.aggregate(cli, `thorp-lib`, `storage-aws`, core, `storage-api`, domain)
|
.aggregate(cli, `thorp-lib`, `storage-aws`, core, `storage-api`, domain)
|
||||||
|
.settings(skip in publish := true)
|
||||||
|
|
||||||
lazy val cli = (project in file("cli"))
|
lazy val cli = (project in file("cli"))
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
|
@ -66,6 +67,7 @@ lazy val cli = (project in file("cli"))
|
||||||
.settings(applicationSettings)
|
.settings(applicationSettings)
|
||||||
.settings(commandLineParsing)
|
.settings(commandLineParsing)
|
||||||
.settings(testDependencies)
|
.settings(testDependencies)
|
||||||
|
.settings(assemblyJarName in assembly := "thorp.jar")
|
||||||
.dependsOn(`thorp-lib`)
|
.dependsOn(`thorp-lib`)
|
||||||
|
|
||||||
lazy val `thorp-lib` = (project in file("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(assemblyJarName in assembly := "storage-aws.jar")
|
||||||
.settings(awsSdkDependencies)
|
.settings(awsSdkDependencies)
|
||||||
.settings(testDependencies)
|
.settings(testDependencies)
|
||||||
|
.settings(skip in publish := true)
|
||||||
.dependsOn(core % "compile->compile;test->test")
|
.dependsOn(core % "compile->compile;test->test")
|
||||||
|
|
||||||
lazy val core = (project in file("core"))
|
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(assemblyJarName in assembly := "core.jar")
|
||||||
.settings(testDependencies)
|
.settings(testDependencies)
|
||||||
.dependsOn(`storage-api`)
|
.dependsOn(`storage-api`)
|
||||||
|
.settings(skip in publish := true)
|
||||||
.dependsOn(domain % "compile->compile;test->test")
|
.dependsOn(domain % "compile->compile;test->test")
|
||||||
|
|
||||||
lazy val `storage-api` = (project in file("storage-api"))
|
lazy val `storage-api` = (project in file("storage-api"))
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
.settings(assemblyJarName in assembly := "storage-api.jar")
|
.settings(assemblyJarName in assembly := "storage-api.jar")
|
||||||
|
.settings(skip in publish := true)
|
||||||
.dependsOn(domain)
|
.dependsOn(domain)
|
||||||
|
|
||||||
lazy val domain = (project in file("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(assemblyJarName in assembly := "domain.jar")
|
||||||
.settings(catsEffectsSettings)
|
.settings(catsEffectsSettings)
|
||||||
.settings(testDependencies)
|
.settings(testDependencies)
|
||||||
|
.settings(skip in publish := true)
|
||||||
|
|
Loading…
Reference in a new issue