Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Mar 10, 2025
1 parent 6fde901 commit 4d77fef
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions example/javalib/basic/1-simple/build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
package build
import mill._, javalib._

def fooSource = Task.Source("foo.txt")
def fooTask: T[String] = Task{
println("evaluating fooTask")
os.read(fooSource().path).toUpperCase
}

def barSource = Task.Source("bar.txt")
def barHelper(s: String) = s.toUpperCase
def barTask: T[String] = Task{
println("evaluating barTask")
barHelper(os.read(barSource().path))
object foo extends JavaModule {
def ivyDeps = Seq(
ivy"net.sourceforge.argparse4j:argparse4j:0.9.0",
ivy"org.thymeleaf:thymeleaf:3.1.1.RELEASE"
)

object test extends JavaTests with TestModule.Junit4 {
def ivyDeps = Seq(
ivy"com.google.guava:guava:33.3.0-jre"
)
}
}

// This is a basic Mill build for a single `JavaModule`, with two
Expand Down

0 comments on commit 4d77fef

Please sign in to comment.