minimallycorrect / mixin Goto Github PK
View Code? Open in Web Editor NEWApplies Mixin-style monkey patches to .java source or compiled .class files. Lightweight
License: Other
Applies Mixin-style monkey patches to .java source or compiled .class files. Lightweight
License: Other
Artifact transforms were added to gradle, and should be a clean way of applying our patches to dependencies. The current approach is fragile as it relies on internal API, and breaks transitive dependencies.
Unfortunately, there have been some issues implementing this.
It's not clear what the possible values for built in gradle attributes are, or what to use. The examples use java
and jar
as values for artifactType
. Where are those defined? jar
is in ArtifactTypeDefinition but there's nothing for java
.
Haven't been able to get transformation of sources working the same way as with jars. Using artifactType java
or sources
seems to result in nothing happening? The sources used when importing into IDEA don't get transformations applied.
Looks like this is the same as gradle/gradle#11519 "DefauitArtifactResolutionQuery does not care for specified Transformers and ArtifactAttributes"
It doesn't seem to be possible to register a transformer for a specific set of dependencies, it gets ran on all of them. This means we need to pass a huge blob of parameters in registered once, and determine what to do per dependency. Extra work for gradle here as it's running the transform (and doing cache stuff) for every dep. Somewhat breaks caching, as if the input for any dep changes the cache is stale.
Once we've done that, it's hard to figure out what dependency the input file is from as only a File
is provided. Raised gradle/gradle#11831 to ask about that.
Only serializable values seem to work in the task parameters, so we have to do a horrible hack with static state and find the task again when running. This also means the dependency isn't being taken into account. Initially expected it would be, as for tasks you can do @InputFiles
and a file dependency from another task's outputs will automatically depend on that task being ran first.
Is there a better workaround than this static hack? Is pretty awful, so don't want to turn on using transformers at all as the generated dependency doesn't depend on that. Generated dep approach also has working dependency on the subproject task.
Raised gradle/gradle#11847
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
actions/cache
, actions/setup-java
, github/codeql-action
, gradle
, gradle/wrapper-validation-action
, org.projectlombok:lombok
, dev.minco:java-transformer
, org.ow2.asm:asm
, org.jetbrains:annotations
, io.github.classgraph:classgraph
, dev.minco.gradle.defaults-plugin
, org.shipkit.shipkit-github-release
, org.shipkit.shipkit-changelog
, org.shipkit.shipkit-auto-version
, org.spockframework:spock-bom
).github/workflows/ci.yml
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
gradle/wrapper-validation-action v2.1.1@699bb18358f12c5b78b37bb0111d3a0e2276e0e2
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
actions/cache v3.0.5@0865c47f36e68161719c5b124609996bb5c40129
actions/setup-java v4.2.1@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
actions/cache v3.0.5@0865c47f36e68161719c5b124609996bb5c40129
actions/setup-java v4.2.1@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
.github/workflows/codeql-analysis.yml
actions/checkout v4.1.7@692973e3d937129bcbf40652eb9f2f61becf3332
github/codeql-action v3.25.13@2d790406f505036ef40ecba973cc774a50395aac
github/codeql-action v3.25.13@2d790406f505036ef40ecba973cc774a50395aac
github/codeql-action v3.25.13@2d790406f505036ef40ecba973cc774a50395aac
gradle.properties
properties.gradle
settings.gradle.kts
build.gradle.kts
com.github.johnrengelman.shadow 7.1.2
org.shipkit.shipkit-auto-version 1.2.1
org.shipkit.shipkit-changelog 1.2.0
org.shipkit.shipkit-github-release 1.2.0
dev.minco.gradle.defaults-plugin 0.2.61
junit:junit 4.13.2
me.nallar.whocalled:WhoCalled 1.1
dev.minco:java-transformer 1.10.49
org.projectlombok:lombok 1.18.24
gradle/shipkit.gradle
gradle-plugin/groovy.gradle
io.github.classgraph:classgraph 4.8.149
gradle-plugin/build.gradle.kts
org.spockframework:spock-bom 2.1-groovy-3.0
junit:junit 4.13.2
org.projectlombok:lombok 1.18.24
org.jetbrains:annotations 23.0.0
org.ow2.asm:asm 9.3
gradle-plugin/test-template/settings.gradle
gradle-plugin/test-template/build.gradle
junit:junit 4.13.2
com.google.guava:guava 31.1-jre
com.google.guava:guava 31.1-jre
gradle/wrapper/gradle-wrapper.properties
gradle 8.0.2
Caused a build error here: https://jenkins.nallar.me/view/All/job/TickThreading/job/1.12/8/console
Any ways to use this Mixin system in a Non-Minecraft related Project?
(Using a Javaagent)
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.