@@ -5,6 +5,7 @@ val supportedScalaVersions = List(scala212, scala213)
55val logbackVersion = " 1.2.3"
66val scalaCollectionCompatibilityVersion = " 2.3.2"
77val scoptVersion = " 4.0.0"
8+ val sdbVersion = " 4.4.10"
89val slf4jVersion = " 1.7.30"
910val utestVersion = " 0.7.7"
1011
@@ -107,10 +108,8 @@ val metaProjectSettings = List(
107108 publish / skip := true
108109)
109110
110- val libraryProjectSettings = commonProjectSettings
111-
112111lazy val root = (project in file(" ." ))
113- .aggregate(cli, core, docs, sbtProject)
112+ .aggregate(cli, core, docs, example, sbtProject)
114113 .settings(metaProjectSettings)
115114 .settings(
116115 crossScalaVersions := supportedScalaVersions,
@@ -122,7 +121,7 @@ lazy val root = (project in file("."))
122121 )
123122
124123lazy val core = project
125- .settings(libraryProjectSettings )
124+ .settings(commonProjectSettings )
126125 .settings(
127126 libraryDependencies ++= collectionsCompatibilityDependency.value,
128127 libraryDependencies ++= List (
@@ -135,7 +134,7 @@ lazy val core = project
135134 ),
136135 name := s " ${(LocalRootProject / name).value}" ,
137136 semanticdbEnabled := true ,
138- semanticdbVersion := " 4.4.10 " ,
137+ semanticdbVersion := sdbVersion ,
139138 testFrameworks += new TestFramework (" utest.runner.Framework" ),
140139 Test / managedSourceDirectories += (Test / semanticdbTargetRoot).value,
141140 Test / fullClasspath += (Test / semanticdbTargetRoot).value
@@ -144,7 +143,7 @@ lazy val core = project
144143lazy val cli = project
145144 .dependsOn(core)
146145 .enablePlugins(BuildInfoPlugin )
147- .settings(libraryProjectSettings )
146+ .settings(commonProjectSettings )
148147 .settings(
149148 buildInfoKeys := Seq [BuildInfoKey ](version),
150149 buildInfoPackage := s " ${organization.value}. ${(LocalRootProject / name).value}" ,
@@ -211,6 +210,15 @@ lazy val docs = (project in file("doc-templates"))
211210 unusedCompileDependenciesFilter -= moduleFilter(" org.scalameta" , " mdoc*" )
212211 )
213212
213+ lazy val example = project
214+ .settings(commonProjectSettings)
215+ .settings(
216+ semanticdbEnabled := true ,
217+ semanticdbIncludeInJar := true ,
218+ semanticdbVersion := sdbVersion,
219+ versionPolicyFirstVersion := Some (" 0.1.13" ),
220+ )
221+
214222def isScala213Setting : Def .Initialize [Boolean ] = Def .setting {
215223 CrossVersion .partialVersion(scalaVersion.value) match {
216224 case Some ((2 , n)) if n == 13 => true
0 commit comments