-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed bintrayOrganization in build.sbt * Removed buildinfo settings in build.sbt * Used inThisBuild instead of commons settings * Used sbt 1.2.6 * Removed jvm options when calling sbt
- Loading branch information
Showing
3 changed files
with
59 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
/* | ||
scalafmt: { | ||
style = defaultWithAlign | ||
maxColumn = 150 | ||
align.tokens = [ | ||
{ code = "=>", owner = "Case" } | ||
{ code = "?", owner = "Case" } | ||
{ code = "extends", owner = "Defn.(Class|Trait|Object)" } | ||
{ code = "//", owner = ".*" } | ||
{ code = "{", owner = "Template" } | ||
{ code = "}", owner = "Template" } | ||
{ code = ":=", owner = "Term.ApplyInfix" } | ||
{ code = "++=", owner = "Term.ApplyInfix" } | ||
{ code = "+=", owner = "Term.ApplyInfix" } | ||
{ code = "%", owner = "Term.ApplyInfix" } | ||
{ code = "%%", owner = "Term.ApplyInfix" } | ||
{ code = "%%%", owner = "Term.ApplyInfix" } | ||
{ code = "->", owner = "Term.ApplyInfix" } | ||
{ code = "?", owner = "Term.ApplyInfix" } | ||
{ code = "<-", owner = "Enumerator.Generator" } | ||
{ code = "?", owner = "Enumerator.Generator" } | ||
{ code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))" } | ||
] | ||
} | ||
*/ | ||
|
||
val commonsVersion = "0.7.6" | ||
val provVersion = "1.1.1" | ||
val kgVersion = "0.9.4" | ||
|
@@ -8,10 +34,9 @@ lazy val kgSchemas = "ch.epfl.bluebrain.nexus" %% "kg-schemas" % kgVer | |
|
||
lazy val core = project | ||
.in(file("modules/core")) | ||
.enablePlugins(WorkbenchPlugin,BuildInfoPlugin) | ||
.enablePlugins(WorkbenchPlugin) | ||
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin) | ||
.dependsOn(nsgcommons) | ||
.settings(common,publishSettings,buildInfoSettings) | ||
.settings( | ||
name := "nsg-core-schemas", | ||
moduleName := "nsg-core-schemas" | ||
|
@@ -21,7 +46,7 @@ lazy val nexusschema = project | |
.in(file("modules/nexus-schemas")) | ||
.enablePlugins(WorkbenchPlugin) | ||
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin) | ||
.settings(common, noPublish) | ||
.settings(noPublish) | ||
.settings( | ||
noPublish, | ||
name := "kg-nsg-schemas", | ||
|
@@ -35,21 +60,19 @@ lazy val nexusschema = project | |
|
||
lazy val experiment = project | ||
.in(file("modules/experiment")) | ||
.enablePlugins(WorkbenchPlugin,BuildInfoPlugin) | ||
.enablePlugins(WorkbenchPlugin) | ||
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin) | ||
.dependsOn(core) | ||
.settings(common,publishSettings,buildInfoSettings) | ||
.settings( | ||
name := "nsg-experiment-schemas", | ||
moduleName := "nsg-experiment-schemas" | ||
) | ||
|
||
lazy val nsgcommons = project | ||
.in(file("modules/commons")) | ||
.enablePlugins(WorkbenchPlugin,BuildInfoPlugin) | ||
.enablePlugins(WorkbenchPlugin) | ||
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin) | ||
.dependsOn(nexusschema) | ||
.settings(common,publishSettings,buildInfoSettings) | ||
.settings( | ||
name := "nsg-commons-schemas", | ||
moduleName := "nsg-commons-schemas", | ||
|
@@ -58,43 +81,39 @@ lazy val nsgcommons = project | |
|
||
lazy val atlas = project | ||
.in(file("modules/atlas")) | ||
.enablePlugins(WorkbenchPlugin,BuildInfoPlugin) | ||
.enablePlugins(WorkbenchPlugin) | ||
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin) | ||
.dependsOn(experiment) | ||
.settings(common,publishSettings,buildInfoSettings) | ||
.settings( | ||
name := "nsg-atlas-schemas", | ||
moduleName := "nsg-atlas-schemas" | ||
) | ||
|
||
lazy val electrophysiology = project | ||
.in(file("modules/electrophysiology")) | ||
.enablePlugins(WorkbenchPlugin,BuildInfoPlugin) | ||
.enablePlugins(WorkbenchPlugin) | ||
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin) | ||
.dependsOn(experiment) | ||
.settings(common,publishSettings,buildInfoSettings) | ||
.settings( | ||
name := "nsg-electrophysiology-schemas", | ||
moduleName := "nsg-electrophysiology-schemas" | ||
) | ||
|
||
lazy val morphology = project | ||
.in(file("modules/morphology")) | ||
.enablePlugins(WorkbenchPlugin,BuildInfoPlugin) | ||
.enablePlugins(WorkbenchPlugin) | ||
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin) | ||
.dependsOn(experiment) | ||
.settings(common,publishSettings,buildInfoSettings) | ||
.settings( | ||
name := "nsg-morphology-schemas", | ||
moduleName := "nsg-morphology-schemas" | ||
) | ||
|
||
lazy val simulation = project | ||
.in(file("modules/simulation")) | ||
.enablePlugins(WorkbenchPlugin,BuildInfoPlugin, ServicePackagingPlugin) | ||
.enablePlugins(WorkbenchPlugin) | ||
.disablePlugins(ScapegoatSbtPlugin, DocumentationPlugin) | ||
.dependsOn(core) | ||
.settings(common,publishSettings,buildInfoSettings) | ||
.settings( | ||
name := "nsg-simulation-schemas", | ||
moduleName := "nsg-simulation-schemas" | ||
|
@@ -104,43 +123,37 @@ lazy val simulation = project | |
lazy val root = project | ||
.in(file(".")) | ||
.settings(name := "nsg-schemas", moduleName := "nsg-schemas") | ||
.settings(common, noPublish) | ||
.settings(noPublish) | ||
.aggregate(core, experiment, atlas, morphology, electrophysiology, simulation, nexusschema,nsgcommons) | ||
|
||
lazy val common = Seq( | ||
scalacOptions in (Compile, console) ~= (_ filterNot (_ == "-Xfatal-warnings")), | ||
autoScalaLibrary := false, | ||
workbenchVersion := "0.3.2", | ||
bintrayOmitLicense := true, | ||
homepage := Some(url("https://github.com/INCF/neuroshapes")), | ||
licenses := Seq("CC-4.0" -> url("https://github.com/INCF/neuroshapes/blob/master/LICENSE")), | ||
developers := List( | ||
inThisBuild( | ||
List( | ||
workbenchVersion := "0.3.2", | ||
bintrayOmitLicense := true, | ||
homepage := Some(url("https://github.com/INCF/neuroshapes")), | ||
licenses := Seq("CC-4.0" -> url("https://github.com/INCF/neuroshapes/blob/master/LICENSE")), | ||
developers := List( | ||
Developer("MFSY", "Mohameth François Sy", "[email protected]", url("https://incf.github.io/neuroshapes/")), | ||
Developer("annakristinkaufmann", "Anna-Kristin Kaufmann", "[email protected]", url("https://incf.github.io/neuroshapes/")), | ||
Developer("huanxiang", "Lu Huanxiang", "[email protected]", url("https://incf.github.io/neuroshapes/")), | ||
Developer("apdavison", "Andrew Davison", "[email protected]", url("https://incf.github.io/neuroshapes/")), | ||
Developer("genric", "Ivaska Genrich", "[email protected]", url("https://incf.github.io/neuroshapes/")) | ||
), | ||
scmInfo := Some( | ||
ScmInfo(url("https://github.com/INCF/neuroshapes"), "scm:git:git@https://github.com/INCF/neuroshapes.git")) | ||
) | ||
), | ||
scmInfo := Some(ScmInfo(url("https://github.com/INCF/neuroshapes"), "scm:git:git@https://github.com/INCF/neuroshapes.git")), | ||
// These are the sbt-release-early settings to configure | ||
releaseEarlyWith := BintrayPublisher, | ||
bintrayRepository := "maven", | ||
releaseEarlyNoGpg := true, | ||
releaseEarlyEnableSyncToMaven := false, | ||
)) | ||
|
||
lazy val buildInfoSettings = Seq( | ||
buildInfoKeys := Seq[BuildInfoKey](version), | ||
buildInfoPackage := s"$name-${version}" | ||
) | ||
|
||
lazy val publishSettings = Seq( | ||
releaseEarlyWith := BintrayPublisher, | ||
bintrayOrganization := Some("neuroshapes"), | ||
bintrayRepository := "maven", | ||
releaseEarlyNoGpg := true, | ||
releaseEarlyEnableSyncToMaven := false | ||
) | ||
|
||
|
||
|
||
lazy val noPublish = Seq(publishLocal := {}, publish := {}) | ||
lazy val noPublish = Seq( | ||
publishLocal := {}, | ||
publish := {}, | ||
publishArtifact := false, | ||
) | ||
|
||
addCommandAlias("review", ";clean;test") | ||
addCommandAlias("rel", ";release with-defaults skip-tests") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version = 1.1.1 | ||
sbt.version = 1.2.6 |