Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Use Gradle #213

wants to merge 2 commits into from

Conversation

jamierocks
Copy link
Member

Maven -> Gradle is like Ant -> Maven.

All you need to do is enter your maven-repo, follow this.

@darkdiplomat
Copy link
Member

What about shading the the dependencies into the build like we do with Maven?
What needs to be updated on Jenkins to continue the continuous integrations?
How does this even work?

@jamierocks
Copy link
Member Author

Ah, stupid me forgot to shade the dependencies in :|
It's pretty simple eg.
You can see another example here.

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.

@jamierocks
Copy link
Member Author

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.
eg:
repo: http://repo.visualillusionsent.net/repository/public/
repoUserName: Duck
repoPassword: DuckGo

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.
@toddharrison
Copy link

Is there a reason to switch besides it just being the "new" thing?

@jamierocks
Copy link
Member Author

If CanaryMod ever uses MCP mappings, ForgeGradle or VanillaGradle is incredibly useful.

@Larry1123
Copy link
Member

@jamierocks we could use MCP mappings without gradle. It is just that we truly have not tried to.

@jamierocks
Copy link
Member Author

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.

@jamierocks
Copy link
Member Author

@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.

@14mRh4X0r
Copy link
Member

Gradle is cool, just saying.

@jamierocks
Copy link
Member Author

It sure is :P

@jamierocks jamierocks mentioned this pull request Jan 20, 2016
@jamierocks
Copy link
Member Author

#233.

@jamierocks jamierocks closed this Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants