File tree 7 files changed +53
-100
lines changed
7 files changed +53
-100
lines changed Original file line number Diff line number Diff line change
1
+ name : test
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ jobs :
8
+ test :
9
+ strategy :
10
+ fail-fast : false
11
+ matrix :
12
+ java : [8, 11, 17-ea]
13
+ scala : [2.12.14, 2.13.6]
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - uses : coursier/cache-action@v6
18
+ - uses : actions/setup-java@v2
19
+ with :
20
+ distribution : adopt
21
+ java-version : ${{matrix.java}}
22
+ - name : Test
23
+ run : sbt ++${{matrix.scala}} test proj/headerCheck package
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ tags : ["*"]
5
+ jobs :
6
+ publish :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ with :
11
+ fetch-depth : 0
12
+ - uses : actions/setup-java@v2
13
+ with :
14
+ distribution : adopt
15
+ java-version : 8
16
+ - run : sbt versionCheck ci-release
17
+ env :
18
+ PGP_PASSPHRASE : ${{secrets.PGP_PASSPHRASE}}
19
+ PGP_SECRET : ${{secrets.PGP_SECRET}}
20
+ SONATYPE_PASSWORD : ${{secrets.SONATYPE_PASSWORD}}
21
+ SONATYPE_USERNAME : ${{secrets.SONATYPE_USERNAME}}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # scala-async [ ![ Build Status ] ( https://travis-ci.org/scala/scala-async.svg?branch=master )] ( https://travis-ci.org/scala/scala-async ) [ <img src =" https://img.shields.io/maven-central/v/org.scala-lang.modules/scala-async_2.12.svg?label=latest%20release%20for%202.12 " >] ( http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.scala-lang.modules%20a%3Ascala-async_2.12 ) [ <img src =" https://img.shields.io/maven-central/v/org.scala-lang.modules/scala-async_2.13.svg?label=latest%20release%20for%202.13 " >] ( http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.scala-lang.modules%20a%3Ascala-async_2.13 )
1
+ # scala-async [ <img src =" https://img.shields.io/maven-central/v/org.scala-lang.modules/scala-async_2.12.svg?label=latest%20release%20for%202.12 " >] ( http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.scala-lang.modules%20a%3Ascala-async_2.12 ) [ <img src =" https://img.shields.io/maven-central/v/org.scala-lang.modules/scala-async_2.13.svg?label=latest%20release%20for%202.13 " >] ( http://search.maven.org/#search%7Cga%7C1%7Cg%3Aorg.scala-lang.modules%20a%3Ascala-async_2.13 )
2
2
3
- A DSL to enable a direct style of programming with when composing values wrapped in Scala ` Future ` s.
3
+ A Scala DSL to enable a direct style of coding when composing ` Future ` s.
4
4
5
- ## Quick start
6
-
7
- To include scala-async in an existing project use the library published on Maven Central.
8
- For sbt projects add the following to your build definition - build.sbt or project/Build.scala:
9
-
10
- ### Use a modern Scala compiler
5
+ ## Usage
11
6
12
7
As of scala-async 1.0, Scala 2.12.12+ or 2.13.3+ are required.
13
8
@@ -44,6 +39,7 @@ to match your project’s Scala binary version):
44
39
Add the ` -Xasync ` to the Scala compiler options.
45
40
46
41
#### SBT Example
42
+
47
43
``` scala
48
44
scalacOptions += " -Xasync"
49
45
```
@@ -133,7 +129,7 @@ def combined: Future[Int] = async {
133
129
134
130
### ` await ` must be directly in the control flow of the async expression
135
131
136
- The ` await ` cannot be nested under a local method, object, class or lambda:
132
+ The ` await ` cannot be nested under a local method, object, class or lambda:
137
133
138
134
```
139
135
async {
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ val sharedSettings = ScalaModulePlugin.scalaModuleSettings ++ ScalaModulePlugin.
2
2
name := " scala-async" ,
3
3
scalaModuleAutomaticModuleName := Some (" scala.async" ),
4
4
5
+ crossScalaVersions := Seq (" 2.13.6" , " 2.12.14" ),
6
+ scalaVersion := crossScalaVersions.value.head,
7
+
5
8
OsgiKeys .exportPackage := Seq (s " scala.async.*;version= ${version.value}" ),
6
9
7
10
libraryDependencies += " org.scala-lang" % " scala-reflect" % scalaVersion.value % " provided" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- addSbtPlugin(" org.scala-lang.modules" % " sbt-scala-module" % " 2.4 .0" )
1
+ addSbtPlugin(" org.scala-lang.modules" % " sbt-scala-module" % " 3.0 .0" )
2
2
addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 1.7.0" )
3
3
addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 1.0.0" )
You can’t perform that action at this time.
0 commit comments