Skip to content

Commit 3da1f96

Browse files
committed
bump version
1 parent 376f7cb commit 3da1f96

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

README.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ This repo is used in this course *(in Swedish)*: http://cs.lth.se/pgk with cours
1616
## How to use introprog-scalalib
1717
### Using sbt
1818

19-
If you have the [Scala Build Tool](https://www.scala-sbt.org/download.html) version 1.5.2 or later then put this text in a file called `build.sbt`
19+
You need to have [Scala Build Tool](https://www.scala-sbt.org/download.html) version 1.5.2 or later and put this text in a file called `build.sbt`
2020
```
21-
scalaVersion := "3.0.0"
22-
libraryDependencies += "se.lth.cs" %% "introprog" % "1.1.5"
21+
scalaVersion := "3.0.1"
22+
libraryDependencies += "se.lth.cs" %% "introprog" % "1.2.0"
2323
```
2424

2525
When you run `sbt` in terminal the `introprog` package is automatically downloaded and made available on your classpath.
@@ -33,39 +33,31 @@ scala> w.fill(100,100,100,100,java.awt.Color.red)
3333

3434
### Older Scala versions
3535

36-
If you want to use Scala 2.13 then you need Scala 2.13.5 or later and these special settings in `build.sbt`:
36+
If you want to use Scala 2.13 with 2.13.5 or later then use these special settings in `build.sbt`:
3737
```
3838
scalaVersion := "2.13.6"
3939
scalacOptions += "-Ytasty-reader"
4040
libraryDependencies +=
4141
("se.lth.cs" %% "introprog" % "1.1.5").cross(CrossVersion.for2_13Use3)
4242
```
4343

44-
For Scala 2.12.x and 2.13.4 and older you need to use the old version `"1.1.4"`.
44+
For Scala 2.12.x and 2.13.4 and older you need to use the old version `"1.1.4"` of `introprog`.
4545

4646

4747
### Manual download
4848

4949
Download the latest jar-file from here: https://github.com/lunduniversity/introprog-scalalib/releases
5050

51-
Or from Maven central here: https://search.maven.org/search?q=a:introprog*
51+
Or from Scaladex here: https://index.scala-lang.org/lunduniversity/introprog-scalalib
5252

53-
Or get any version from here: https://repo1.maven.org/maven2/se/lth/cs/
53+
Or search Maven central here: https://search.maven.org/search?q=a:introprog*
5454

55-
Put the jar-file on your classpath when you run the Scala REPL, for example:
56-
```
57-
> scala -cp introprog_3-1.1.5.jar
58-
scala> val w = new introprog.PixelWindow()
59-
scala> w.fill(100,100,100,100,java.awt.Color.red)
60-
scala>
61-
```
62-
Put the jar-file on your classpath when you run your Scala app, for example:
63-
```
64-
> scala -cp "introprog_3-1.1.5.jar:." Main
65-
```
66-
If on Windows cmd/powershell use `;` instead of `:` before the period.
55+
Or download any version directly from Maven here: https://repo1.maven.org/maven2/se/lth/cs/
56+
57+
Put the latest introprog jar-file in your sbt project in a subfolder called `lib`. In your `build.sbt` you only need `scalaVersion := "3.0.1"` without a library dependency to introprog, as `sbt` automatically put jars in lib on your classpath.
6758

6859
## How to build introprog-scalalib
60+
6961
With [`sbt`](https://www.scala-sbt.org/download.html) and [`git`](https://git-scm.com/downloads) on your path type in terminal:
7062
```
7163
> git clone [email protected]:lunduniversity/introprog-scalalib.git

0 commit comments

Comments
 (0)