Skip to content

Commit b5177ad

Browse files
autofix-ci[bot]lostiniceland
authored andcommitted
[autofix.ci] apply automated fixes
1 parent 7fac9ce commit b5177ad

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

libs/groovylib/api/src/mill/groovylib/worker/api/GroovyWorker.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package mill.groovylib.worker.api
22

3-
import mill.api.{PathRef, Result, TaskCtx}
3+
import mill.api.{Result, TaskCtx}
44
import mill.javalib.api.CompilationResult
55

66
/**
@@ -25,7 +25,7 @@ trait GroovyWorker {
2525
)(implicit
2626
ctx: TaskCtx
2727
)
28-
: Result[Unit]
28+
: Result[Unit]
2929

3030
/**
3131
* Compiles the Groovy sources. In a mixed setup this method assumes that the Java stubs

libs/groovylib/src/mill/groovylib/GroovyModule.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,12 @@ trait GroovyModule extends JavaModule with GroovyModuleApi { outer =>
132132
groovyCompileTask()()
133133
}
134134

135-
def compileGroovyStubs: T[Result[Unit]] = Task(persistent = true){
135+
def compileGroovyStubs: T[Result[Unit]] = Task(persistent = true) {
136136
val groovySourceFiles = allGroovySourceFiles().map(_.path)
137137
val stubDir = compileGeneratedGroovyStubs()
138-
Task.ctx().log.info(s"Generating Java stubs for ${groovySourceFiles.size} Groovy sources to $stubDir ...")
138+
Task.ctx().log.info(
139+
s"Generating Java stubs for ${groovySourceFiles.size} Groovy sources to $stubDir ..."
140+
)
139141

140142
val compileCp = compileClasspath().map(_.path).filter(os.exists)
141143
val config = GroovyCompilerConfiguration(

libs/groovylib/src/mill/groovylib/JavaMavenModuleWithGroovyTests.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import mill.javalib.{JavaModule, MavenModule}
55

66
/**
77
* Convenience trait for projects using Java for production and Groovy for tests in a Maven setup.
8-
*
8+
*
99
* Since [[GroovyModule.GroovyTests]] is only available as a child-trait, it is necessary to have
10-
* the main module as a [[GroovyModule]], which would implicitly add Groovy dependencies to the
10+
* the main module as a [[GroovyModule]], which would implicitly add Groovy dependencies to the
1111
* module.
1212
* This trait explicitly uses Java with a Maven layout for the main module and enables `src/test/groovy`
1313
* as a source folder for Groovy tests.
14-
*
14+
*
1515
* {{{
1616
* object `package` extends JavaMavenModuleWithGroovyTests {
1717
*
@@ -21,7 +21,7 @@ import mill.javalib.{JavaModule, MavenModule}
2121
* }
2222
* }
2323
* }}}
24-
*
24+
*
2525
* Note: for non-Maven layouts this is not necessary, since the test module can just be a [[GroovyModule]].
2626
*/
2727
@mill.api.experimental

libs/groovylib/worker/src/mill/groovylib/worker/impl/GroovyWorkerImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package mill.groovylib.worker.impl
22

33
import groovy.lang.GroovyClassLoader
4-
import mill.api.{PathRef, Result, TaskCtx}
4+
import mill.api.{Result, TaskCtx}
55
import mill.javalib.api.CompilationResult
66
import mill.groovylib.worker.api.{GroovyCompilerConfiguration, GroovyWorker}
77
import org.codehaus.groovy.control.{CompilationUnit, CompilerConfiguration, Phases}

0 commit comments

Comments
 (0)