@@ -2,33 +2,40 @@ import ReleaseTransformations.*
2
2
import sbtversionpolicy .withsbtrelease .ReleaseVersion
3
3
import Dependencies .*
4
4
5
+ ThisBuild / scalaVersion := " 3.3.6"
6
+ ThisBuild / crossScalaVersions := Seq (
7
+ scalaVersion.value,
8
+ " 2.13.16"
9
+ )
10
+ ThisBuild / scalacOptions := Seq (" -deprecation" , " -release:11" )
11
+
5
12
lazy val artifactProducingProjectSettings = Seq (
6
- scalaVersion := " 2.13.16" ,
7
13
organization := " com.madgag.scala-git" ,
8
14
licenses := Seq (License .Apache2 ),
9
15
scalacOptions ++= Seq (" -deprecation" , " -unchecked" , " -release:11" ),
10
- libraryDependencies ++= Seq (madgagCompress % Test , scalatest % Test )
16
+ libraryDependencies ++= Seq (scalatest % Test )
11
17
)
12
18
13
19
lazy val `scala-git` = project.settings(artifactProducingProjectSettings * ).dependsOn(`scala-git-test` % Test ).settings(
14
20
libraryDependencies ++= Seq (
15
21
jgit,
16
22
" com.madgag" %% " scala-collection-plus" % " 1.0.0" ,
17
23
scalatest % Test
18
- )
24
+ ),
25
+ Test / fork := true
19
26
)
20
27
21
28
lazy val `scala-git-test` = project.in(file(" scala-git-test" )).settings(artifactProducingProjectSettings * ).settings(
22
- libraryDependencies ++= guava :+ madgagCompress :+ jgit
29
+ libraryDependencies ++= guava :+ zip4j :+ jgit
23
30
)
24
31
25
32
ThisBuild / Test / testOptions +=
26
33
Tests .Argument (TestFrameworks .ScalaTest , " -u" , s " test-results/scala- ${scalaVersion.value}" , " -o" )
27
34
28
35
lazy val root = (project in file(" ." )).aggregate(`scala-git`, `scala-git-test`).settings(
29
36
publish / skip := true ,
30
- releaseVersion := ReleaseVersion .fromAggregatedAssessedCompatibilityWithLatestRelease().value,
31
- // releaseCrossBuild := true, // true if you cross-build the project for multiple Scala versions
37
+ // releaseVersion := ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease().value,
38
+ releaseCrossBuild := true , // true if you cross-build the project for multiple Scala versions
32
39
releaseProcess := Seq [ReleaseStep ](
33
40
checkSnapshotDependencies,
34
41
inquireVersions,
0 commit comments