Jump to content

Recommended Posts

Posted

I've recently switched over to the "proper" setup for Forge using gradle. What files should I commit to the mod repository and which should I .gitignore?

 

(Basically, which files are critical to the mod download from repo and which can I rely on gradle to rebuild for the downloadee?)

 

(I should mention I'm in the `gradlew idea` workspace)

 

My current .gitignore:

.gradle/
build/
gradle/
build.gradle
gradlew.bat
*.iml
*.ipr
*.iws
run/

 

The folder hierarchy I'm working with:

.git
|	<git stuff>
.gradle
|	<gradle stuff>
build
|	<build stuff>
run
|	<run environment>
src
|	<class files>
.gitignore
build.gradle
gradlew.bat
README.md
<project>.iml
<project>.ipr
<project>.iws
[code]

Posted

I use the following .gitignore:

 

# push src/ only
*
!src/
!gradle/
!gradlew
!gradlew.bat
!README.md
!LICENSE
!build.gradle

*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

 

All one needs to build is the "gradle/" and the "src/" directory aswell as the "gradlew" and "gradlew.bat" and the "build.gradle" file. This explains the .gitignore file:

First I ignore all files, then I unignore all files mentioned above. The other ignores are default from GitHub.

Posted

I agree, I do similar effect (although slightly different entries) in my gitignore:

$ cat .gitignore
/*
!/src
!build.gradle
!*.project

 

I would say the philosophy I use is that anything I edit directly I put in repo, anything that is built or referenced or pre-existing I don't.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted
  On 7/27/2014 at 2:06 PM, diesieben07 said:

jabelar you should put the gradle wrapper into your repo, that's the whole point of the wrapper.

 

Sure, it wouldn't hurt.  The thing is for me I use the repo mostly for private backup and tutorial examples, so I mostly care about the code and I don't usually collaborate.  If I clone I likely still install a new Forge over top, and just preserve the source.  I don't usually edit the wrapper in a unique way, so am not worried about re-creating it as needed.  But still good idea for proper posterity.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Thanks, diesieben, for clarifying, and jabelar and WorldsEnder for posting their .gitignores. I've got what I need now, thanks!

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I checked the hash like you said and it came back as OK each time, also may I ask what you mean by debug mode during installation?  
    • My name is Clara Bennett, and I almost let cryptocurrency destroy me.  Two years ago, after selling my green e-commerce startup, I plunged headfirst into the crypto world. yield farming , I was all in. I believed I wasn’t just investing; I was participating in the next great technological revolution. Within months, my portfolio skyrocketed to $200,000. I even started sketching ideas for a blockchain-based microloan platform to empower small entrepreneurs around the world. Crypto felt like pure freedom and limitless potential. I thought I was untouchable. I thought wrong. It happened through a single email. It looked like a standard security update from my wallet provider polished, routine, and harmless. I interacted with it briefly, thinking it was legitimate. Hours later, I checked my account and realized my entire wallet had been drained. Every token, every coin, gone. I sat there in disbelief, replaying the moment over and over. I had built my career on being cautious with technology, yet somehow, I had still been compromised. The blockchain’s promise of "irreversible transactions" now felt like a cruel joke  .Devastated and desperate, I scoured forums for solutions. Most people told me there was no hope once crypto is gone, it’s gone. Still, I refused to give up. That’s when I stumbled across FUNDS RETRIEVER ENGINEER . I decided to reach out. From the beginning, they were empathetic, and honest about the challenges. They explained their process step-by-step, focusing on tracing transactions, tracking down phishing operators, and leveraging advanced blockchain analytics. It wasn't an overnight fix. It took weeks of meticulous investigation, technical recovery work, and legal coordination .But in the end, their persistence paid off. FUNDS RETRIEVER ENGINEER  was able to trace the stolen funds across multiple wallets and exchanges. Through a combination of technical expertise and strategic action, they managed to recover the full amount I had lost. Today, my crypto portfolio is intact once again. More importantly, I’ve regained my confidence though I am now much wiser and far more cautious. I learned the hard way that while crypto offers incredible opportunities, it also demands extreme vigilance. Thanks to FUNDS RETRIEVER ENGINEER , I recovered my lost funds and  also reclaimed my future in the digital economy. For help  W H A T S A P P:  +1  8  0 2 9 5 2 3 4 7 0 E   m  a I L       F U N D S R  E T R  I E V E R  [@]  E  N  G  I  N  E  E  R.  C  O  M
    • 1. Did you try to remove your system cache or something? 2. Also check jar hash before installing (if it's ok): sha1sum jar_name.jar > jar_name.jar.sha1 sha1sum -c jar_name.jar.sha1 Do this a few times with some interval. This can find out if your hash can be different somehow (garbage files inside).  Also try using sha224sum / sha256sum / sha384sum / sha512sum / shasum. And do you have any debug mode during installation?   UPDATED: and it can be just fixing by chmod'ing jar file. Check its -lZ 
    • I get these errors when trying to install any version (this ones for 47.3.33 for instance):  Processor failed, invalid outputs:     /home/user/.local/share/FreesmLauncher/instances/1.20.1/minecraft/libraries/net/minecraft/server/1.20.1-20230612.114412/server-1.20.1-20230612.114412-slim.jar       Expected: 9e06bdd77ca6d95b2cced0bf372245f753eeb16a       Actual:   f1e5a0cc3c9f7c58f26524a43c5badc06ca0bac4     /home/user/.local/share/FreesmLauncher/instances/1.20.1/minecraft/libraries/net/minecraft/server/1.20.1-20230612.114412/server-1.20.1-20230612.114412-extra.jar       Expected: 13522e3278befd103064d91a199451df4cd2633f       Actual:   eb1dafb7bee2ace5d55d90b65e73c2196b1991f3 I've tried sklauncher and freesm launcher and they throw the same error, tried installing it with the official forge installer too but same error. Also tried different versions of java: 17, 21, 24. Forge for previous versions install fine, I'm on Linux CachyOS.  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.