1- import org .jetbrains .sbt .kotlin .Keys ._
1+ import org .jetbrains .sbt .kotlin .Keys .*
22
3- inThisBuild(
4- Seq (
5- organization := " com.github.simy4.coregex" ,
6- organizationName := " Alex Simkin" ,
7- homepage := Some (url(" https://github.com/SimY4/coregex" )),
8- licenses += (" Apache-2.0" , url(" https://www.apache.org/licenses/LICENSE-2.0.txt" )),
9- scmInfo := Some (
10- ScmInfo (
11- url(" https://github.com/SimY4/coregex" ),
12- " scm:git@github.com:SimY4/coregex.git"
13- )
14- ),
15- developers := List (
16- Developer (
17- id = " SimY4" ,
18- name = " Alex Simkin" ,
19- email = null ,
20- url = url(" https://github.com/SimY4" )
21- )
22- ),
23- releaseNotesURL := Some (url(" https://github.com/SimY4/coregex/releases" )),
24- versionScheme := Some (" early-semver" ),
25- startYear := Some (2021 ),
26- headerEndYear := Some (2026 )
3+ organization := " com.github.simy4.coregex"
4+ organizationName := " Alex Simkin"
5+ homepage := Some (uri(" https://github.com/SimY4/coregex" ))
6+ licenses += (" Apache-2.0" , uri(" https://www.apache.org/licenses/LICENSE-2.0.txt" ))
7+ scmInfo := Some (
8+ ScmInfo (
9+ uri(" https://github.com/SimY4/coregex" ),
10+ " scm:git@github.com:SimY4/coregex.git"
11+ )
12+ )
13+ developers := List (
14+ Developer (
15+ id = " SimY4" ,
16+ name = " Alex Simkin" ,
17+ email = null ,
18+ url = uri(" https://github.com/SimY4" )
2719 )
2820)
21+ releaseNotesURL := Some (uri(" https://github.com/SimY4/coregex/releases" ))
22+ versionScheme := Some (" early-semver" )
23+ startYear := Some (2021 )
24+ headerEndYear := Some (2026 )
2925
3026lazy val scala212 = " 2.12.21"
3127lazy val scala213 = " 2.13.18"
3228lazy val scala3 = " 3.3.8"
3329lazy val supportedScalaVersions = List (scala212, scala213, scala3)
3430
31+ scalaVersion := scala213
32+
3533def javaLibSettings (release : Int ) = Seq (
36- crossPaths := false ,
37- autoScalaLibrary := false ,
38- ThisBuild / javafmtFormatterCompatibleJavaVersion := 17 ,
34+ crossPaths := false ,
35+ autoScalaLibrary := false ,
36+ javafmtFormatterCompatibleJavaVersion := 17 ,
3937 Compile / compile / javacOptions ++= Seq (" -Xlint:all,-options" , " -Werror" , " --release" , release.toString),
4038 Compile / doc / javacOptions ++= Seq (" -Xdoclint:all,-missing" , " --release" , release.toString, " -html5" )
4139)
@@ -54,28 +52,16 @@ lazy val jacocoSettings = Test / jacocoReportSettings := JacocoReportSettings(
5452 " utf-8"
5553)
5654
57- ThisBuild / scalaVersion := scala213
58-
5955releaseTagComment := s " [sbt release] - releasing ${(ThisBuild / version).value}"
6056releaseCommitMessage := s " [sbt release] - setting version to ${(ThisBuild / version).value}"
6157releaseNextCommitMessage := s " [skip ci][sbt release] - new version commit: ${(ThisBuild / version).value}"
6258
63- lazy val root = (project in file(" ." ))
59+ lazy val root = (project in file(" ." )).autoAggregate
6460 .settings(
65- name := " coregex-parent" ,
66- publish / skip := true
67- )
68- .aggregate(
69- core,
70- functionaljavaQuickcheck,
71- hedgehog,
72- jetCheck,
73- jqwik,
74- junitQuickcheck,
75- kotest,
76- scalacheck,
77- vavrTest,
78- zioTest
61+ name := " coregex-parent" ,
62+ publish / skip := true ,
63+ Test / skip := true ,
64+ crossScalaVersions := Nil
7965 )
8066
8167lazy val core = (project in file(" core" ))
@@ -97,8 +83,8 @@ lazy val functionaljavaQuickcheck = (project in file("functionaljava-quickcheck"
9783 moduleName := " coregex-functionaljava-quickcheck" ,
9884 description := " Functionaljava quickcheck bindings for coregex library." ,
9985 libraryDependencies ++= Seq (
100- " org.functionaljava" % " functionaljava-quickcheck" % " 5.0" % Provided exclude (" junit" , " junit" ),
101- " com.github.sbt" % " junit-interface" % " 0.13.3" % Test
86+ ( " org.functionaljava" % " functionaljava-quickcheck" % " 5.0" % Provided ). exclude(" junit" , " junit" ),
87+ " com.github.sbt" % " junit-interface" % " 0.13.3" % Test
10288 ),
10389 testOptions += Tests .Argument (TestFrameworks .JUnit , " -q" , " -v" ),
10490 javaLibSettings(8 ),
@@ -163,7 +149,7 @@ lazy val junitQuickcheck = (project in file("junit-quickcheck"))
163149 moduleName := " coregex-junit-quickcheck" ,
164150 description := " JUnit Quickcheck bindings for coregex library." ,
165151 libraryDependencies ++= Seq (
166- " com.pholser" % " junit-quickcheck-core" % " 1.0" % Provided exclude (" junit" , " junit" ),
152+ ( " com.pholser" % " junit-quickcheck-core" % " 1.0" % Provided ). exclude(" junit" , " junit" ),
167153 " com.pholser" % " junit-quickcheck-generators" % " 1.0" % Test ,
168154 " org.slf4j" % " slf4j-simple" % " 1.7.25" % Test ,
169155 " com.github.sbt" % " junit-interface" % " 0.13.3" % Test
0 commit comments