Skip to content

Commit 7abaae1

Browse files
committed
Updated Maven conversion
1 parent 448a7eb commit 7abaae1

File tree

55 files changed

+1150
-1944
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1150
-1944
lines changed

example/migrating/javalib/3-maven-complete-large/build.mill

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
> git remote add -f origin https://github.com/iluwatar/java-design-patterns
77
> git checkout ede37bd05568b1b8b814d8e9a1d2bbd71d9d615d
88

9-
> ./mill init --jvm-id 21 # Repo needs Java >=21 to build and test
9+
> echo 21 > .mill-jvm-version # Repo needs Java >=21 to build and test
10+
11+
> ./mill init
1012

1113
> rm twin/src/test/java/com/iluwatar/twin/BallThreadTest.java # skip flaky test
1214
> rm actor-model/src/test/java/com/iluwatar/actor/ActorModelTest.java # skip flaky test
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package mill.integration
2+
3+
import mill.testkit.GitRepoIntegrationTestSuite
4+
import utest.*
5+
6+
object MillInitAsmTests extends GitRepoIntegrationTestSuite {
7+
8+
// gradle 8.3
9+
def gitRepoUrl = "https://gitlab.ow2.org/asm/asm.git"
10+
def gitRepoBranch = "ASM_9_8"
11+
12+
def tests = Tests {
13+
test - integrationTest { tester =>
14+
import tester.*
15+
16+
os.write(workspacePath / ".mill-jvm-version", "11")
17+
18+
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
19+
eval(("resolve", "_"), stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
20+
eval("asm.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
21+
eval("asm.publishLocal", stdout = os.Inherit, stderr = os.Inherit)
22+
23+
// modules are tested with asm-test module?
24+
eval("asm.test", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false
25+
26+
// custom sourceSets not supported
27+
eval(
28+
"tools.retrofitter.compile",
29+
stdout = os.Inherit,
30+
stderr = os.Inherit
31+
).isSuccess ==> false
32+
}
33+
}
34+
}

integration/manual/migrating-gradle/src/MillInitFastCsvTests.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ object MillInitFastCsvTests extends GitRepoIntegrationTestSuite {
1515
test - integrationTest { tester =>
1616
import tester.*
1717

18-
// from tasks.compileJava.options.release
1918
os.write(workspacePath / ".mill-jvm-version", "17")
2019

2120
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package mill.integration
2+
3+
import mill.testkit.GitRepoIntegrationTestSuite
4+
import utest.*
5+
6+
object MillInitSpringFrameworkTests extends GitRepoIntegrationTestSuite {
7+
8+
// gradle 8.14.3
9+
// custom repository
10+
// dependencies with version constraints
11+
// BOM modules
12+
// uses errorprone
13+
def gitRepoUrl = "https://github.com/spring-projects/spring-framework.git"
14+
def gitRepoBranch = "v6.2.10"
15+
16+
def tests = Tests {
17+
test - integrationTest { tester =>
18+
import tester.*
19+
20+
os.write(workspacePath / ".mill-jvm-version", "17")
21+
22+
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
23+
eval(("resolve", "_"), stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
24+
25+
// requires support for dependency version constraints
26+
eval("spring-jcl.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false
27+
}
28+
}
29+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package mill.integration
2+
3+
import mill.testkit.GitRepoIntegrationTestSuite
4+
import utest.*
5+
6+
object MillInitAntlr4Tests extends GitRepoIntegrationTestSuite {
7+
8+
def gitRepoUrl = "https://github.com/antlr/antlr4.git"
9+
def gitRepoBranch = "v4.11.1"
10+
11+
def tests = Tests {
12+
test - integrationTest { tester =>
13+
import tester.*
14+
15+
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
16+
eval(("resolve", "_"), stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
17+
18+
// custom layout not supported
19+
eval("__.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false
20+
}
21+
}
22+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package mill.integration
2+
3+
import mill.testkit.GitRepoIntegrationTestSuite
4+
import utest.*
5+
6+
object MillInitByteBuddyTests extends GitRepoIntegrationTestSuite {
7+
8+
// maven 3.9.9
9+
// contains Android module
10+
// contains C sources for JNA
11+
// Junit4
12+
def gitRepoUrl = "https://github.com/raphw/byte-buddy.git"
13+
def gitRepoBranch = "byte-buddy-1.17.7"
14+
15+
def tests = Tests {
16+
test - integrationTest { tester =>
17+
import tester.*
18+
19+
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
20+
eval(("resolve", "_"), stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
21+
eval("byte-buddy-agent.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
22+
eval(
23+
"byte-buddy-agent.publishLocal",
24+
stdout = os.Inherit,
25+
stderr = os.Inherit
26+
).isSuccess ==> true
27+
28+
// requires native compilation support
29+
eval(
30+
"byte-buddy-agent.test.compile",
31+
stdout = os.Inherit,
32+
stderr = os.Inherit
33+
).isSuccess ==> false
34+
}
35+
}
36+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package mill.integration
2+
3+
import mill.testkit.GitRepoIntegrationTestSuite
4+
import utest.*
5+
6+
object MillInitCheckstyleTests extends GitRepoIntegrationTestSuite {
7+
8+
// maven 3.9.6
9+
// .mvn/jvm.config
10+
// errorprone
11+
// Junit5
12+
// single module
13+
def gitRepoUrl = "https://github.com/checkstyle/checkstyle.git"
14+
def gitRepoBranch = "checkstyle-11.0.0"
15+
16+
def tests = Tests {
17+
test - integrationTest { tester =>
18+
import tester.*
19+
20+
os.write(workspacePath / ".mill-jvm-version", "17")
21+
22+
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
23+
eval(("resolve", "_"), stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
24+
25+
// missing generated sources
26+
eval("compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false
27+
}
28+
}
29+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package mill.integration
2+
3+
import mill.testkit.GitRepoIntegrationTestSuite
4+
import utest.*
5+
6+
object MillInitErrorProneTests extends GitRepoIntegrationTestSuite {
7+
8+
def gitRepoUrl = "https://github.com/google/error-prone.git"
9+
def gitRepoBranch = "v2.41.0"
10+
11+
def tests = Tests {
12+
test - integrationTest { tester =>
13+
import tester.*
14+
15+
os.write(workspacePath / ".mill-jvm-version", "17")
16+
17+
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
18+
eval(("resolve", "_"), stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
19+
20+
// requires support for javac annotation processors
21+
eval("core.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false
22+
}
23+
}
24+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package mill.integration
2+
3+
import mill.testkit.GitRepoIntegrationTestSuite
4+
import utest.*
5+
6+
object MillInitJansiTests extends GitRepoIntegrationTestSuite {
7+
8+
// single module
9+
def gitRepoUrl = "https://github.com/fusesource/jansi.git"
10+
def gitRepoBranch = "jansi-2.4.2"
11+
12+
def tests = Tests {
13+
test - integrationTest { tester =>
14+
import tester.*
15+
16+
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
17+
eval(("resolve", "_"), stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
18+
eval("compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
19+
eval("test", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
20+
eval("publishLocal", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
21+
}
22+
}
23+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package mill.integration
2+
3+
import mill.testkit.GitRepoIntegrationTestSuite
4+
import utest.*
5+
6+
object MillInitJodaBeansTests extends GitRepoIntegrationTestSuite {
7+
8+
// single module
9+
def gitRepoUrl = "https://github.com/JodaOrg/joda-beans.git"
10+
def gitRepoBranch = "v2.11.1"
11+
12+
def tests = Tests {
13+
test - integrationTest { tester =>
14+
import tester.*
15+
16+
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
17+
eval(("resolve", "_"), stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
18+
eval("compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
19+
eval("test", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true
20+
21+
// malformed HTML
22+
eval("publishLocal", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)