Skip to content

Commit

Permalink
Moved BuildInfo into package mill.contrib.buildinfo
Browse files Browse the repository at this point in the history
This fixes #548

See also #547
  • Loading branch information
lefou committed Feb 18, 2019
1 parent 306df49 commit 3b07c2c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contrib/buildinfo/src/BuildInfo.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mill.contrib
package mill.contrib.buildinfo

import mill.T
import mill.define.Target
Expand Down
4 changes: 4 additions & 0 deletions contrib/buildinfo/src/deprecated.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package mill.contrib

@deprecated("Moved to package mill.contrib.buildinfo", "0.3.7")
trait BuildInfo extends mill.contrib.buildinfo.BuildInfo
2 changes: 1 addition & 1 deletion contrib/buildinfo/test/src/BuildInfoTests.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mill.contrib
package mill.contrib.buildinfo

import java.util.jar.JarFile
import mill._
Expand Down
7 changes: 6 additions & 1 deletion docs/pages/9 - Contrib Modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
Generate scala code from your buildfile.
This plugin generates a single object containing information from your build.

To declare a module that uses BuildInfo you must extend the `mill.contrib.BuildInfo` trait when defining your module.
To declare a module that uses BuildInfo you must extend the `mill.contrib.buildinfo.BuildInfo` trait when defining your module.

Quickstart:
```scala
// build.sc
// You have to replace VERSION
import $ivy.`com.lihaoyi::mill-contrib-buildinfo:VERSION`
import mill.contrib.buildinfo.BuildInfo

object project extends BuildInfo {
val name = "poject-name"
def buildInfoMembers: T[Map[String, String]] = T {
Expand Down

0 comments on commit 3b07c2c

Please # to comment.