Skip to content

Commit 2e541d0

Browse files
[autofix.ci] apply automated fixes
1 parent 52c32b5 commit 2e541d0

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package mill.groovylib.worker.api
22

3-
case class GroovyCompilerConfiguration (
4-
enablePreview: Boolean = false,
5-
disabledGlobalAstTransformations: Set[String]= Set.empty,
6-
targetBytecode: Option[String]= None)
3+
case class GroovyCompilerConfiguration(
4+
enablePreview: Boolean = false,
5+
disabledGlobalAstTransformations: Set[String] = Set.empty,
6+
targetBytecode: Option[String] = None
7+
)

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ trait GroovyModule extends JavaModule with GroovyModuleApi { outer =>
7272
*/
7373
def disabledGlobalAstTransformations: T[Set[String]] = Set.empty
7474

75-
7675
/**
7776
* All individual Java source files fed into the compiler.
7877
* Subset of [[allSourceFiles]].
@@ -155,7 +154,7 @@ trait GroovyModule extends JavaModule with GroovyModuleApi { outer =>
155154
val config = GroovyCompilerConfiguration(
156155
enablePreview = enablePreview(),
157156
targetBytecode = targetBytecode(),
158-
disabledGlobalAstTransformations = disabledGlobalAstTransformations(),
157+
disabledGlobalAstTransformations = disabledGlobalAstTransformations()
159158
)
160159

161160
def compileJava: Result[CompilationResult] = {

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class GroovyWorkerImpl extends GroovyWorker {
1818
sourceFiles: Seq[Path],
1919
classpath: Seq[Path],
2020
outputDir: Path,
21-
config: GroovyCompilerConfiguration,
21+
config: GroovyCompilerConfiguration
2222
)(implicit ctx: TaskCtx): Result[CompilationResult] = {
2323
val compilerConfig = new CompilerConfiguration()
2424
compilerConfig.setTargetDirectory(outputDir.toIO)
@@ -27,7 +27,9 @@ class GroovyWorkerImpl extends GroovyWorker {
2727
"stubDir" -> outputDir.toIO,
2828
"keepStubs" -> false
2929
).asJava)
30-
compilerConfig.setDisabledGlobalASTTransformations(config.disabledGlobalAstTransformations.asJava)
30+
compilerConfig.setDisabledGlobalASTTransformations(
31+
config.disabledGlobalAstTransformations.asJava
32+
)
3133
compilerConfig.setPreviewFeatures(config.enablePreview)
3234
config.targetBytecode.foreach(compilerConfig.setTargetBytecode)
3335

@@ -56,7 +58,7 @@ class GroovyWorkerImpl extends GroovyWorker {
5658
sourceFiles: Seq[os.Path],
5759
classpath: Seq[os.Path],
5860
outputDir: os.Path,
59-
config: GroovyCompilerConfiguration,
61+
config: GroovyCompilerConfiguration
6062
)(implicit
6163
ctx: TaskCtx
6264
): Result[CompilationResult] = {
@@ -66,7 +68,9 @@ class GroovyWorkerImpl extends GroovyWorker {
6668
val compilerConfig = new CompilerConfiguration()
6769
compilerConfig.setTargetDirectory(outputDir.toIO)
6870
compilerConfig.setClasspathList(extendedClasspath.map(_.toIO.getAbsolutePath).asJava)
69-
compilerConfig.setDisabledGlobalASTTransformations(config.disabledGlobalAstTransformations.asJava)
71+
compilerConfig.setDisabledGlobalASTTransformations(
72+
config.disabledGlobalAstTransformations.asJava
73+
)
7074
compilerConfig.setPreviewFeatures(config.enablePreview)
7175
config.targetBytecode.foreach(compilerConfig.setTargetBytecode)
7276

0 commit comments

Comments
 (0)