|
| 1 | +ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0"))) |
| 2 | +ThisBuild / startYear := Some(2004) |
| 3 | + |
| 4 | +// I thought we could declare these in `ThisBuild` scope but no :-/ |
| 5 | +val commonSettings = Seq( |
| 6 | + versionScheme := Some("early-semver"), |
| 7 | + versionPolicyIntention := Compatibility.BinaryCompatible, |
| 8 | +) |
| 9 | + |
1 | 10 | lazy val root = project.in(file(".")) |
2 | 11 | .aggregate(parserCombinatorsJVM, parserCombinatorsJS, parserCombinatorsNative) |
3 | 12 | .settings( |
| 13 | + commonSettings, |
4 | 14 | publish / skip := true, |
5 | | - ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0"))), |
6 | | - ThisBuild / startYear := Some(2004), |
7 | | - ThisBuild / versionScheme := Some("early-semver"), |
8 | | - ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible, |
9 | | - // because it doesn't declare it itself |
10 | | - ThisBuild / libraryDependencySchemes += "org.scala-js" %% "scalajs-library" % "semver-spec" |
11 | 15 | ) |
12 | 16 |
|
13 | 17 | lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatform) |
14 | 18 | .in(file(".")) |
15 | 19 | .settings( |
16 | 20 | ScalaModulePlugin.scalaModuleSettings, |
| 21 | + commonSettings, |
17 | 22 | name := "scala-parser-combinators", |
18 | 23 | scalaModuleAutomaticModuleName := Some("scala.util.parsing"), |
19 | 24 |
|
@@ -92,7 +97,8 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor |
92 | 97 | ) |
93 | 98 | .jsEnablePlugins(ScalaJSJUnitPlugin) |
94 | 99 | .nativeSettings( |
95 | | - ThisBuild / versionPolicyIntention := Compatibility.None, |
| 100 | + versionPolicyCheck / skip := true, |
| 101 | + versionCheck / skip := true, |
96 | 102 | compile / skip := System.getProperty("java.version").startsWith("1.6") || !scalaVersion.value.startsWith("2"), |
97 | 103 | test := {}, |
98 | 104 | libraryDependencies := { |
|
0 commit comments