New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deobfCompile does not work with ivy dependencies or local files #315
Comments
this also does not work when you want to use local files |
any news on this? some mods we use as a dependencies don't provide maven and if they're compiled against older mappings it breaks the workspace and holds the dependent back on old mappings as well |
you can always create a local maven as its purely a flat file system. |
There are reasons for this.
Reason I needed the maven info was so I could put the deobfuscated jars into a local maven repo in correct locations and have them grabbed by FG. If you use flatfile deps with gradle, it doesnt grab sourcejars or javadocs. Ivy dependencies dont have a specific location format and cant be converted to maven deps reliably. |
For context, the case we are running into is dependencies that have a "standard" distribution url but no maven. The only workaround is to use BON2, which is much less convenient than automatically downloading and setting up dependencies with gradle. |
gradle is very powerful.. If you are having it auto-downlaod your dependency, you can also have it auto-deobfusctae the dependency with BON. https://docs.gradle.org/current/dsl/org.gradle.api.tasks.JavaExec.html If you are using Ivy.. well.. thats a bit of a problem. |
Ivy is the only way I know of to download a jar from a url (like from Curse). |
You can actually do this by using the output of a task as a dependency in the |
Closing this issue as it does not appear to be applicable to the currently supported ForgeGradle branch ( If I am incorrect in this regard, please create a new issue prefixed with
Note that an ongoing effort to update legacy MinecraftForge branches to utilize FG_3.0 is ongoing and accepting informed contributions. (For more information join the Discord and read through the #mcpconfig channel) |
This correctly creates a deobf jar with sources in
C:\Users\<me>\.gradle\caches\minecraft\deobfedDeps\deobf\aroma1997\core\Aroma1997Core\1.0.3.4.b36\Aroma1997Core-1.0.3.4.b36.jar
but gradle and the idea project are linked to the obfuscated version here:
C:\Users\<me>\.gradle\caches\modules-2\files-2.1\aroma1997.core\Aroma1997Core\1.0.3.4.b36\3e5d3cf3c577cd48e1ba6d3e6f68af42281f078c\Aroma1997Core-1.0.3.4.b36.jar
and compilation (
./gradlew build
) fails.gradle.log
The text was updated successfully, but these errors were encountered: