-
Notifications
You must be signed in to change notification settings - Fork 31
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
Use Gradle #213
Use Gradle #213
Conversation
What about shading the the dependencies into the build like we do with Maven? |
Ah, stupid me forgot to shade the dependencies in :| I am not familiar with Jenkins, but once you have your repo settings sorted, you probably just need to run 'gradle build uploadArchives'. Gradle has a very extensive user guide, you can find here. |
Very simply, to get your repo working (using ftp), you just need to make a gradle.properties file and enter in the repo, the repoUserName and repoPassword. |
To build you need to do gradle build To deploy you need to do gradle deploy If you do not have Gradle installed or set up properly, you can use the included Gradle wrapper, by swapping grade out of the above commands, and use ./gradlew (os x, linux) or gradlew (windows).
I did this because this is how your current build scripts work.
Is there a reason to switch besides it just being the "new" thing? |
If CanaryMod ever uses MCP mappings, ForgeGradle or VanillaGradle is incredibly useful. |
@jamierocks we could use MCP mappings without gradle. It is just that we truly have not tried to. |
Yes - you could make a system half as powerful as ForgeGradle, and delight every dev that works on CanaryMod. Not only is Gradle more powerful than maven is has an already established set of plugins for working with Minecraft. |
@darkdiplomat I will get some images done, showing the setup using Jenkins. It's nice that Jenkins has Gradle support, although it really doesn't make it any easier... unless you don't like using wrappers. |
Gradle is cool, just saying. |
It sure is :P |
#233. |
Maven -> Gradle is like Ant -> Maven.
All you need to do is enter your maven-repo, follow this.