diff --git a/src/test/groovy/net/fabricmc/loom/test/LoomTestConstants.groovy b/src/test/groovy/net/fabricmc/loom/test/LoomTestConstants.groovy index b4e5c6d..57c0f2c 100644 --- a/src/test/groovy/net/fabricmc/loom/test/LoomTestConstants.groovy +++ b/src/test/groovy/net/fabricmc/loom/test/LoomTestConstants.groovy @@ -26,7 +26,7 @@ package net.fabricmc.loom.test class LoomTestConstants { public final static String DEFAULT_GRADLE = "7.0.1" - public final static String PRE_RELEASE_GRADLE = "7.3-20210904222223+0000" + public final static String PRE_RELEASE_GRADLE = "7.3-20210906222431+0000" public final static String[] STANDARD_TEST_VERSIONS = [DEFAULT_GRADLE, PRE_RELEASE_GRADLE] } diff --git a/src/test/groovy/net/fabricmc/loom/test/integration/FabricAPITest.groovy b/src/test/groovy/net/fabricmc/loom/test/integration/FabricAPITest.groovy index 17cbf69..cbefa2e 100644 --- a/src/test/groovy/net/fabricmc/loom/test/integration/FabricAPITest.groovy +++ b/src/test/groovy/net/fabricmc/loom/test/integration/FabricAPITest.groovy @@ -45,7 +45,8 @@ class FabricAPITest extends Specification implements GradleProjectTestTrait { def gradle = gradleProject( repo: "https://github.com/FabricMC/fabric.git", commit: "fc40aa9d88e9457957bdf3f8cec9698846828cd3", - version: version + version: version, + patch: "fabric_api" ) // Set the version to something constant diff --git a/src/test/resources/patches/fabric_api.patch b/src/test/resources/patches/fabric_api.patch new file mode 100644 index 0000000..cce2c1a --- /dev/null +++ b/src/test/resources/patches/fabric_api.patch @@ -0,0 +1,22 @@ +diff --git a/build.gradle b/build.gradle +--- a/build.gradle (revision fc40aa9d88e9457957bdf3f8cec9698846828cd3) ++++ b/build.gradle (date 1631009569915) +@@ -257,6 +257,9 @@ + setupRepositories(repositories) + } + ++ // Required as moduleDependencies modifies the pom ++ loom.disableDeprecatedPomGeneration(publishing.publications.mavenJava) ++ + javadoc.enabled = false + } + +@@ -296,6 +299,8 @@ + setupRepositories(repositories) + } + ++loom.disableDeprecatedPomGeneration(publishing.publications.mavenJava) ++ + void setupRepositories(RepositoryHandler repositories) { + //repositories.mavenLocal() // uncomment for testing + def ENV = System.getenv()