diff --git a/build.gradle b/build.gradle index 24e1c8e8..8864a880 100644 --- a/build.gradle +++ b/build.gradle @@ -32,6 +32,13 @@ repositories { } } +// check for updates every build when on CI +if (System.env.CI) { + configurations.all { + resolutionStrategy.cacheChangingModulesFor 0, 'seconds' + } +} + dependencies { minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}" @@ -140,4 +147,4 @@ publishing { } } } -} \ No newline at end of file +}