Skip to content

Commit 630f1a1

Browse files
wsargentbantonsson
authored andcommitted
Add note about version numbers
Give a dynamic indication of version numbers, since "0.13" doesn't have an SBT 1.0 equivalent and it took me 30 minutes to figure out it wasn't the repo that was bad, there literally was no artifact there.
1 parent 3e37d51 commit 630f1a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ This sbt plugin adds Java agents to projects in a general way. It can enable age
77
Add the plugin to your `project/plugins.sbt`:
88

99
```scala
10-
addSbtPlugin("com.lightbend.sbt" % "sbt-javaagent" % "0.1.3")
10+
addSbtPlugin("com.lightbend.sbt" % "sbt-javaagent" % versionNumber)
1111
```
1212

13+
The version number is determined by the latest package, and can be deduced from the [version.sbt](https://github.com/sbt/sbt-javaagent/blob/master/version.sbt) file, i.e. if the version.sbt is "0.15-SNAPSHOT" then the latest released version is probably "0.14". You can see the full version packages in the bintray repository:
14+
15+
https://dl.bintray.com/sbt/sbt-plugin-releases/com.lightbend.sbt/sbt-javaagent/scala_2.12/sbt_1.0/
16+
1317
## Java agent
1418

1519
To add a Java agent to an [sbt-native-packager] distribution, enable the `JavaAgent` plugin on a project that also has `JavaAppPackaging` enabled, and then add the agent dependency using the `javaAgents` setting. For example:

0 commit comments

Comments
 (0)