Add modCompileOnlyApi, modRuntimeOnly; deprecate modRuntime (#458)

This commit is contained in:
Juuxel
2021-08-01 01:46:42 +03:00
committed by GitHub
parent f9a06cbd41
commit a0c2d877af
3 changed files with 15 additions and 3 deletions

View File

@@ -151,6 +151,11 @@ public class ModCompileRemapper {
for (ModDependencyInfo info : modDependencies) {
project.getDependencies().add(info.targetConfig.getName(), info.getRemappedNotation());
}
// Report deprecation warnings
if (entry.replacedWith() != null && !modDependencies.isEmpty()) {
extension.getDeprecationHelper().replaceWithInLoom0_11(entry.sourceConfiguration(), entry.replacedWith());
}
});
}
}