-
-
Notifications
You must be signed in to change notification settings - Fork 419
Revised build importer implementations #5428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 36 commits
d57983b
55eb124
5410f43
2e82d15
a2b17d2
0c135ff
18b0e78
ff61532
6e10b2d
2113a73
50ec630
d90a39a
997ee71
f3802b8
3948dbb
335bca9
aa3c626
fcf163b
63731fb
59055b7
cce84a5
5a889fc
199b26e
d8c8089
9f49707
6bfd04c
66f7bf9
aeb3fbb
fa2a015
a2b0e1e
3f5062e
654591f
90380c3
f959ba3
910c330
9480498
c87bf31
fb85b6a
93cbb5c
5be1e0a
605f908
623448e
463f508
e07804a
9789f5a
f9f3213
a492ad8
59b7524
eea294a
e8fd0cf
3682bbb
4131f6f
cb1857f
828df54
9306958
fef54c6
593caa0
388f4d0
39fa1f9
35e5bc9
deb22ad
083c925
cc29eef
3e60aca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradleAsmTests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
// Gradle 8.3 | ||
"https://gitlab.ow2.org/asm/asm.git", | ||
"ASM_9_8", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval( | ||
("init", "--gradle-jvm-id", "11"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
eval("asm.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// tests are run using asm-test module? | ||
eval("asm.test", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
|
||
// custom sourceSets not supported | ||
eval( | ||
"tools.retrofitter.compile", | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> false | ||
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradleEhcache3Tests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
// Gradle 7.2 | ||
"https://github.com/ehcache/ehcache3.git", | ||
"v3.10.8", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval( | ||
("init", "--gradle-jvm-id", "11"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// Gradle autoconfigures javac option -proc:none when -processorpath is not provided | ||
eval("ehcache-api.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradleFastCsvTests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
// Gradle 9.0.0-rc-1, ErrorProne | ||
"https://github.com/osiegmar/FastCSV.git", | ||
"v4.0.0", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
// https://fastcsv.org/guides/contribution/ | ||
// requires JVM 25 as per docs, but it is missing in the coursier index | ||
eval( | ||
("init", "--gradle-jvm-id", "24"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// Gradle autoconfigures javac option -proc:none when -processorpath is not provided | ||
eval("lib.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradleJCommanderTests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
// Gradle 8.9 | ||
test - integrationTestGitRepo( | ||
"https://github.com/cbeust/jcommander.git", | ||
"2.0", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval( | ||
("init", "--gradle-jvm-id", "11"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// annotations defined in main-module cannot be used in test-module? | ||
eval("test.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradleMicroconfigTests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
// Gradle 8.10.1 | ||
test - integrationTestGitRepo( | ||
"https://github.com/microconfig/microconfig.git", | ||
"v4.9.5", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval( | ||
("init", "--gradle-jvm-id", "11"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
eval("__.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
eval("__.test", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradleMockitoTests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
// Gradle 8.14.2, BOM module | ||
"https://github.com/mockito/mockito.git", | ||
"v5.19.0", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval( | ||
("init", "--gradle-jvm-id", "17"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// ErrorProne requires JDK 17+ but module jvmId is 11 | ||
eval("mockito-core.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradlePCollectionsTests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
// Gradle 8.14.3 | ||
"https://github.com/hrldcpr/pcollections.git", | ||
"v5.0.0", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval( | ||
("init", "--gradle-jvm-id", "17"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
eval("compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// typos in class names | ||
eval("javadocGenerated", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
// mismatch between junit-jupiter-api and junit-platform-launcher (from sbt jupiter-interface) | ||
eval("test", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradleSpotbugsTests extends GitRepoIntegrationTestSuite { | ||
|
||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
// Gradle 9.0.0 | ||
"https://github.com/spotbugs/spotbugs.git", | ||
"4.9.4", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval( | ||
("init", "--gradle-jvm-id", "17"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
eval( | ||
"spotbugs-annotations.compile", | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval( | ||
"spotbugs-annotations.publishLocal", | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
|
||
// custom source folders not supported | ||
eval("spotbugs-tests.test", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitGradleSpringFrameworkTests extends GitRepoIntegrationTestSuite { | ||
|
||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
// Gradle 8.14.3, ErrorProne | ||
"https://github.com/spring-projects/spring-framework.git", | ||
"v6.2.11", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval( | ||
("init", "--gradle-jvm-id", "24"), | ||
stdout = os.Inherit, | ||
stderr = os.Inherit | ||
).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// BomModule not supported | ||
eval("spring-core.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitMavenAntlr4Tests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
// polyglot project | ||
"https://github.com/antlr/antlr4.git", | ||
"4.13.2", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// custom layout not supported | ||
eval("__.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package mill.integration | ||
|
||
import mill.testkit.GitRepoIntegrationTestSuite | ||
import utest.* | ||
|
||
object MillInitMavenByteBuddyTests extends GitRepoIntegrationTestSuite { | ||
def tests = Tests { | ||
test - integrationTestGitRepo( | ||
"https://github.com/raphw/byte-buddy.git", | ||
"byte-buddy-1.17.7", | ||
linkMillExecutable = true | ||
) { tester => | ||
import tester.* | ||
|
||
eval("init", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
eval("__.showModuleDeps", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
eval("byte-buddy-agent.test", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> true | ||
|
||
// requires Android support | ||
// Gradle plugin is built using Gradle | ||
eval("__.compile", stdout = os.Inherit, stderr = os.Inherit).isSuccess ==> false | ||
} | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.