Skip to content

Commit 9a26ea3

Browse files
autofix-ci[bot]lostiniceland
authored andcommitted
[autofix.ci] apply automated fixes
1 parent ea34a49 commit 9a26ea3

File tree

8 files changed

+11
-17
lines changed

8 files changed

+11
-17
lines changed

example/groovylib/basic/1-simple/build.mill

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object foo extends GroovyModule {
1010
mvn"org.apache.groovy:groovy-cli-commons", // BOM already loaded by module
1111
mvn"org.apache.groovy:groovy-xml" // BOM already loaded by module
1212
)
13-
13+
1414
def mainClass = Some("foo.Foo")
1515

1616
object test extends GroovyTests with TestModule.Junit5 {
@@ -52,7 +52,7 @@ object foo extends GroovyModule {
5252
//
5353
//// SNIPPET:DEPENDENCIES
5454
//
55-
// This example project uses two third-party dependencies
55+
// This example project uses two third-party dependencies
5656
// - Groovy-Cli-Commons for CLI argument parsing
5757
// - Groovy-Xml for HTML templating and escaping
5858
// and uses them to wrap a given input string in HTML templates with proper escaping.

example/groovylib/basic/2-compat-modules/build.mill

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ object foo extends GroovyMavenModule {
1212

1313
def groovyVersion = "5.0.1"
1414

15-
object test extends GroovyMavenTests with TestModule.Junit5 {
16-
}
17-
object integration extends GroovyMavenTests with TestModule.Junit5 {
18-
}
15+
object test extends GroovyMavenTests with TestModule.Junit5 {}
16+
object integration extends GroovyMavenTests with TestModule.Junit5 {}
1917
}
2018

2119
// `GroovyMavenModule` is a variant of `GroovyModule`

example/groovylib/testing/1-test-suite/build.mill

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ object bar extends GroovyModule {
2929
)
3030
}
3131
}
32-

example/groovylib/testing/2-integration-suite/build.mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ object qux extends GroovyModule {
1717
}
1818
}
1919

20-
// The integration suite is just another regular test module within the parent GroovyModule
20+
// The integration suite is just another regular test module within the parent GroovyModule

example/groovylib/testing/3-spock/build.mill

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@ object `package` extends GroovyModule {
1111
def jupiterVersion = "5.13.4"
1212
}
1313
}
14-
15-

example/groovylib/testing/4-spock-for-java/build.mill

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ object `package` extends JavaMavenModuleWithGroovyTests {
2020
// This is usefull for Java projects which use Groovy only for testing.
2121
// For non Maven-layout projects, this convenience trait is not necessary
2222
// because you can just use `GroovyModule` for your test object instead.
23-

libs/groovylib/test/src/mill/groovylib/HelloGroovyTests.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ object HelloGroovyTests extends TestSuite {
1717

1818
object HelloGroovy extends TestRootModule {
1919

20-
trait GroovyVersionCross extends GroovyModule with Cross.Module[String]{
20+
trait GroovyVersionCross extends GroovyModule with Cross.Module[String] {
2121
override def groovyVersion: Task.Simple[String] = crossValue
2222
}
23-
23+
2424
lazy val millDiscover = Discover[this.type]
2525

2626
// needed for a special test where only the tests are written in Groovy while appcode remains Java
@@ -44,7 +44,7 @@ object HelloGroovyTests extends TestSuite {
4444
*/
4545
object spock extends GroovyModule {
4646
override def groovyVersion: T[String] = groovy4Version
47-
47+
4848
object tests extends GroovyTests with TestModule.Spock {
4949
override def jupiterVersion: T[String] = junit5Version
5050
override def spockVersion: T[String] = spockGroovy4Version
@@ -102,7 +102,7 @@ object HelloGroovyTests extends TestSuite {
102102
override def junitPlatformVersion = "1.13.4"
103103
}
104104
}
105-
object main extends Cross[Test](groovyVersions)
105+
object main extends Cross[Test](groovyVersions)
106106
}
107107

108108
val resourcePath = os.Path(sys.env("MILL_TEST_RESOURCE_DIR")) / "hello-groovy"
@@ -122,7 +122,7 @@ object HelloGroovyTests extends TestSuite {
122122
test("running a Groovy script") {
123123
testEval().scoped { eval =>
124124
main.crossModules.foreach(m => {
125-
val Right(_) = eval.apply(m.script.run()): @unchecked
125+
val Right(_) = eval.apply(m.script.run()): @unchecked
126126
})
127127
}
128128
}

libs/javalib/src/mill/javalib/TestModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ object TestModule {
633633
* TestModule that uses Spock Test Framework to run tests.
634634
* You can override the [[spockVersion]] task or provide the Spock dependency yourself.
635635
*
636-
* In case the version is set, it pulls in Spock-BOM in [[bomMvnDeps]] (only for 2.3 onwards)
636+
* In case the version is set, it pulls in Spock-BOM in [[bomMvnDeps]] (only for 2.3 onwards)
637637
* and Spock-Core in [[mvnDeps]]
638638
*/
639639
trait Spock extends TestModule.Junit5 {

0 commit comments

Comments
 (0)