11lazy val scala212 = " 2.12.13"
2- lazy val scala213 = " 2.13.5"
2+ lazy val scala213 = " 2.13.6"
3+ val fs2Version = " 3.1.3"
4+
35val GraalVM11 = " graalvm-ce-java11@20.3.0"
46
7+ inThisBuild(
8+ List (
9+ organization := " com.github.regis-leray" ,
10+ homepage := Some (url(" https://github.com/regis-leray/fs2-ftp" )),
11+ scmInfo := Some (ScmInfo (url(" https://github.com/regis-leray/fs2-ftp" ), " git@github.com:regis-leray/fs2-ftp.git" )),
12+ developers := List (
13+ Developer (" regis_leray" , " Regis Leray" , " regis.leray at gmail dot com" , url(" https://github.com/regis-leray" ))
14+ ),
15+ licenses += (" Apache-2.0" , url(" http://www.apache.org/licenses/LICENSE-2.0" ))
16+ )
17+ )
518ThisBuild / scalaVersion := scala213
619ThisBuild / crossScalaVersions := List (scala213, scala212)
7-
820ThisBuild / githubWorkflowJavaVersions := Seq (GraalVM11 )
21+ ThisBuild / versionScheme := Some (" early-semver" )
922
10- // sbt-ci-release settings
1123ThisBuild / githubWorkflowBuildPreamble ++= Seq (
12- WorkflowStep .Run (List (
13- " chmod -R 777 ./ftp-home/" ,
14- " docker-compose -f \" docker-compose.yml\" up -d --build" ,
15- " chmod -R 777 ./ftp-home/sftp/home/foo/dir1"
16- ), name = Some (" Start containers" ))
24+ WorkflowStep .Run (
25+ List (
26+ " chmod -R 777 ./ftp-home/" ,
27+ " docker-compose -f \" docker-compose.yml\" up -d --build" ,
28+ " chmod -R 777 ./ftp-home/sftp/home/foo/dir1"
29+ ),
30+ name = Some (" Start containers" )
31+ )
32+ )
33+ ThisBuild / githubWorkflowBuild := Seq (
34+ WorkflowStep .Sbt (List (" check" , " test" ))
1735)
1836
37+ // sbt-ci-release settings
1938ThisBuild / githubWorkflowPublishPreamble := Seq (
20-
39+ WorkflowStep . Use ( UseRef . Public ( " olafurpg " , " setup-gpg " , " v3 " ))
2140)
2241
2342ThisBuild / githubWorkflowTargetTags ++= Seq (" v*" )
24- ThisBuild / githubWorkflowPublishTargetBranches := Seq (RefPredicate .StartsWith (Ref .Tag (" v" )))
43+ ThisBuild / githubWorkflowPublishTargetBranches := Seq (
44+ RefPredicate .StartsWith (Ref .Branch (" master" )),
45+ RefPredicate .StartsWith (Ref .Tag (" v" ))
46+ )
2547ThisBuild / githubWorkflowPublish := Seq (WorkflowStep .Sbt (List (" ci-release" )))
2648ThisBuild / githubWorkflowEnv ++= List (
2749 " PGP_PASSPHRASE" ,
2850 " PGP_SECRET" ,
2951 " SONATYPE_PASSWORD" ,
3052 " SONATYPE_USERNAME"
31- ).map { envKey =>
32- envKey -> s " $$ {{ secrets. $envKey }} "
33- }.toMap
34-
53+ ).map(envKey => envKey -> s " $$ {{ secrets. $envKey }} " ).toMap
3554
3655lazy val `fs2-ftp` = project
3756 .in(file(" ." ))
3857 .settings(
39- organization := " com.github.regis-leray" ,
4058 name := " fs2-ftp" ,
41- description := " fs2-ftp" ,
4259 Test / fork := true ,
4360 Test / parallelExecution := false ,
44- homepage := Some (url(" https://github.com/regis-leray/fs2-ftp" )),
45- scmInfo := Some (ScmInfo (url(" https://github.com/regis-leray/fs2-ftp" ), " git@github.com:regis-leray/fs2-ftp.git" )),
46- developers := List (
47- Developer (" username" , " Regis Leray" , " regis.leray at gmail dot com" , url(" https://github.com/regis-leray" ))
48- ),
49- licenses += (" Apache-2.0" , url(" http://www.apache.org/licenses/LICENSE-2.0" )),
5061 publishMavenStyle := true ,
5162 scalacOptions ++= Seq (
5263 " -encoding" ,
@@ -65,12 +76,12 @@ lazy val `fs2-ftp` = project
6576 .toList
6677 .flatten,
6778 // PgpKeys.pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toCharArray()),
68- publishTo := sonatypePublishToBundle.value,
79+ publishTo := sonatypePublishToBundle.value
6980 )
7081 .settings(
7182 libraryDependencies ++= Seq (
72- " co.fs2" %% " fs2-core" % " 3.0.6 " ,
73- " co.fs2" %% " fs2-io" % " 3.0.6 " ,
83+ " co.fs2" %% " fs2-core" % fs2Version ,
84+ " co.fs2" %% " fs2-io" % fs2Version ,
7485 " org.scala-lang.modules" %% " scala-collection-compat" % " 2.5.0" ,
7586 " com.hierynomus" % " sshj" % " 0.31.0" ,
7687 " commons-net" % " commons-net" % " 3.8.0" ,
0 commit comments