1- import PgpKeys .{publishLocalSigned , publishSigned }
2- import com .typesafe .sbt .SbtGit .GitKeys ._
1+ val javaVersion = " 1.8"
32
4- organization := " software.purpledragon.xml"
5- version := " 1.0.3-SNAPSHOT"
6-
7- scalaVersion := " 2.13.1"
8- crossScalaVersions := Seq (scalaVersion.value, " 2.11.12" , " 2.12.10" )
9-
10- // dependencies common for all sub-projects
11- libraryDependencies ++= Seq (
12- " org.scala-lang.modules" %% " scala-xml" % " 1.2.0"
13- )
3+ inThisBuild(
4+ Seq (
5+ organization := " software.purpledragon.xml" ,
6+ version := " 1.0.3-SNAPSHOT" ,
7+ scalaVersion := " 2.13.1" ,
8+ crossScalaVersions := Seq (scalaVersion.value, " 2.11.12" , " 2.12.10" ),
9+ licenses += (" Apache-2.0" , url(" https://opensource.org/licenses/Apache-2.0" )),
10+ developers := List (
11+ Developer (" stringbean" , " Michael Stringer" , " @the_stringbean" , url(" https://github.com/stringbean" ))
12+ ),
13+ organizationName := " Michael Stringer" ,
14+ organizationHomepage := Some (url(" https://purpledragon.software" )),
15+ homepage := Some (url(" https://stringbean.github.io/scala-xml-compare" )),
16+ startYear := Some (2017 ),
17+ scmInfo := Some (
18+ ScmInfo (
19+ url(" https://github.com/stringbean/scala-xml-compare" ),
20+ " https://github.com/stringbean/scala-xml-compare.git" )),
21+ autoAPIMappings := true ,
22+ javacOptions ++= Seq (" -source" , javaVersion, " -target" , javaVersion, " -Xlint" ),
23+ scalacOptions ++= Seq (s " -target:jvm- $javaVersion" , " -deprecation" , " -feature" , " -unchecked" ),
24+ // dependencies common for all sub-projects
25+ libraryDependencies ++= Seq (
26+ " org.scala-lang.modules" %% " scala-xml" % " 1.2.0"
27+ ),
28+ ))
1429
1530lazy val xmlCompare = Project (" xml-compare" , file(" xml-compare" ))
1631 .settings(
@@ -32,35 +47,26 @@ lazy val xmlSpecs2 = Project("xml-specs2", file("xml-specs2"))
3247 previewAuto := {}
3348 )
3449
35- lazy val root = project
36- .in(file(" ." ))
50+ lazy val root = Project (" scala-xml-compare" , file(" ." ))
3751 .aggregate(
3852 xmlCompare,
3953 xmlScalatest,
4054 xmlSpecs2
4155 )
4256 .settings(
43- publish := {},
44- publishSigned := {},
45- publishLocal := {},
46- publishLocalSigned := {},
47- test := {},
48- testOnly := {},
49- bintrayUnpublish := {},
50- bintraySyncMavenCentral := {},
57+ publishArtifact := false ,
58+ // ghpages
59+ git.remoteRepo := scmInfo.value.get.connection.replace(" scm:git:" , " " ),
60+ ghpagesNoJekyll := true ,
61+ // site/paradox
5162 siteSubdirName in ScalaUnidoc := " api" ,
5263 addMappingsToSiteDir(mappings in (ScalaUnidoc , packageDoc), siteSubdirName in ScalaUnidoc ),
53- gitRemoteRepo := " git@github.com:stringbean/scala-xml-compare.git" ,
54- ghpagesNoJekyll := true ,
55- paradoxTheme := Some (builtinParadoxTheme(" generic" )),
56- sourceDirectory in Paradox := baseDirectory.value / " docs" ,
57- sourceDirectory in Paradox in paradoxTheme := baseDirectory.value / " docs" / " _template" ,
58- git.remoteRepo := " git@github.com:stringbean/scala-xml-compare.git" ,
5964 paradoxProperties in Paradox ++= Map (
6065 " scaladoc.software.purpledragon.xml.base_url" -> " .../api"
6166 ),
6267 scalacOptions in Compile in doc ++= Seq (
63- " -doc-root-content" , baseDirectory.value + " /root-scaladoc.txt"
68+ " -doc-root-content" ,
69+ baseDirectory.value + " /root-scaladoc.txt"
6470 )
6571 )
6672 .enablePlugins(ScalaUnidocPlugin , GhpagesPlugin , ParadoxSitePlugin )
0 commit comments