Skip to content

Commit

Permalink
Rely on the redefined Dep and DepSyntax dependencies in kotlinlib pac…
Browse files Browse the repository at this point in the history
…kage
  • Loading branch information
0xnm committed Sep 16, 2024
1 parent a3eedda commit 6c502ba
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/kotlinlib/basic/1-simple/build.mill
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// SNIPPET:BUILD
package build
import mill._, kotlinlib._, scalalib._
import mill._, kotlinlib._

object `package` extends RootModule with KotlinModule {

Expand Down
2 changes: 1 addition & 1 deletion example/kotlinlib/basic/2-custom-build-logic/build.mill
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// SNIPPET:BUILD
package build
import mill._, kotlinlib._, scalalib._
import mill._, kotlinlib._

object `package` extends RootModule with KotlinModule {

Expand Down
6 changes: 2 additions & 4 deletions example/kotlinlib/basic/2-custom-build-logic/src/foo/Foo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ fun getLineCount(): String? {
.getResourceAsStream("line-count.txt")
.readAllBytes()
.toString(Charsets.UTF_8)
)
} catch (e: IOException) {
null
}
}

fun main() {
println("Line Count: " + getLineCount())
}
fun main() = println("Line Count: " + getLineCount())

2 changes: 1 addition & 1 deletion example/kotlinlib/basic/3-multi-module/build.mill
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// SNIPPET:BUILD
package build
import mill._, kotlinlib._, scalalib._
import mill._, kotlinlib._

trait MyModule extends KotlinModule {

Expand Down
2 changes: 1 addition & 1 deletion example/kotlinlib/basic/4-builtin-commands/build.mill
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//// SNIPPET:BUILD
package build
import mill._, kotlinlib._, scalalib._
import mill._, kotlinlib._

trait MyModule extends KotlinModule {

Expand Down
2 changes: 1 addition & 1 deletion kotlinlib/src/mill/kotlinlib/KotlinModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import mill.api.{PathRef, Result}
import mill.define.{Command, ModuleRef, Task}
import mill.kotlinlib.worker.api.KotlinWorker
import mill.scalalib.api.{CompilationResult, ZincWorkerApi}
import mill.scalalib.{Dep, DepSyntax, JavaModule, Lib, ZincWorkerModule}
import mill.scalalib.{JavaModule, Lib, ZincWorkerModule}
import mill.util.Util.millProjectModule
import mill.{Agg, T}

Expand Down

0 comments on commit 6c502ba

Please sign in to comment.