-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use asm fix from adventure-platform-mod
- Loading branch information
Showing
3 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import java.util.Objects; | ||
import org.gradle.api.artifacts.CacheableRule; | ||
import org.gradle.api.artifacts.ComponentMetadataContext; | ||
import org.gradle.api.artifacts.ComponentMetadataRule; | ||
|
||
@CacheableRule | ||
public abstract class RemoveAsmConstraint implements ComponentMetadataRule { | ||
@Override | ||
public void execute(final ComponentMetadataContext ctx) { | ||
ctx.getDetails().allVariants(variants -> { | ||
variants.withDependencies(deps -> { | ||
deps.forEach(dep -> { | ||
if (Objects.equals(dep.getGroup(), "org.ow2.asm")) { | ||
if (dep.getVersionConstraint().getStrictVersion() != null) { | ||
dep.version(v -> { | ||
v.require(v.getStrictVersion()); | ||
}); | ||
} | ||
} | ||
}); | ||
}); | ||
}); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.