Skip to content

Commit 3232f77

Browse files
committed
Prepared release 0.3.1
1 parent 539ee2f commit 3232f77

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
SourceCode [![Join the chat at https://gitter.im/lihaoyi/Ammonite](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/lihaoyi/sourcecode?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Maven Central](https://img.shields.io/maven-central/v/com.lihaoyi/sourcecode_2.13.svg)](https://maven-badges.herokuapp.com/maven-central/com.lihaoyi/sourcecode_2.13)
22
==========
33

4-
```scala
5-
"com.lihaoyi" %% "sourcecode" % "0.3.0" // Scala-JVM
6-
"com.lihaoyi" %%% "sourcecode" % "0.3.0" // Scala.js / Scala Native
7-
```
84

95
`sourcecode` is a small Scala library that provides common "source code"
106
context to your program at runtime, similar to Python's `__name__`, C++'s
@@ -49,6 +45,7 @@ Table of Contents
4945
=================
5046

5147
- [Overview](#overview)
48+
- [Download](#download)
5249
- [Examples](#examples)
5350
- [Use Cases](#use-cases)
5451
- [Logging](#logging)
@@ -107,6 +104,28 @@ magnitude faster than e.g. getting file-name and line-numbers using stack
107104
inspection, and also works on Scala.js where reflection and stack inspection
108105
can't be used.
109106

107+
Download
108+
========
109+
110+
**Mill**
111+
112+
`sourcecode` is published to Maven Central.
113+
114+
```scala
115+
def ivyDeps = Agg(
116+
ivy"com.lihaoyi::sourcecode:0.3.1", // Scala-JVM
117+
ivy"com.lihaoyi::sourcecode::0.3.1" // Scala.js / Scala Native
118+
)
119+
```
120+
121+
**sbt**
122+
123+
```scala
124+
"com.lihaoyi" %% "sourcecode" % "0.3.1" // Scala-JVM
125+
"com.lihaoyi" %%% "sourcecode" % "0.3.1" // Scala.js / Scala Native
126+
```
127+
128+
110129
Examples
111130
========
112131

@@ -625,6 +644,11 @@ in its `.toString` method.
625644
Version History
626645
===============
627646

647+
0.3.1
648+
-----
649+
650+
- Reference method values when building `Args` in Scala 3 [#126](https://github.com/com-lihaoyi/sourcecode/pull/126)
651+
628652
0.3.0
629653
-----
630654

0 commit comments

Comments
 (0)