Posted May 29, 20178 yr Just finished my mod but will plan to release more updates. How do I convert it to a jar?
May 29, 20178 yr run gradlew build in a command prompt from your project directory, your mod will be in build\libs
May 30, 20178 yr Author Just now, Ugdhar said: run gradlew build in a command prompt from your project directory, your mod will be in build\libs tanks!
May 30, 20178 yr Author Just now, Ugdhar said: run gradlew build in a command prompt from your project directory, your mod will be in build\libs What's up with it stuck in compileJava and build failed
May 30, 20178 yr Author Just now, TheRPGAdventurer said: What's up with it stuck in compileJava and build failed also it says use source 8 or higher.
May 30, 20178 yr I believe to fix that, you edit build.gradle and replace 1.6 with 1.8 on the sourceCompatability line. You get that error when you use features of java 1.8 but are compiling for 1.6 (which is the default)
May 31, 20178 yr Author Just now, Ugdhar said: I believe to fix that, you edit build.gradle and replace 1.6 with 1.8 on the sourceCompatability line. You get that error when you use features of java 1.8 but are compiling for 1.6 (which is the default) at what line notepad++ I mean is it line 32 or 48 somethin like that.
May 31, 20178 yr I believe its some variable called sourceCapatibility... There are 2 lines one at 18 and the other at 20... Also you will need to change version, group, and archivesBaseName too because they are used for naming the jar file.
May 31, 20178 yr Author Just now, derf6060 said: I believe its some variable called sourceCapatibility... There are 2 lines one at 18 and the other at 20... Also you will need to change version, group, and archivesBaseName too because they are used for naming the jar file. I fixed it line 17 and 18 I changed both to 1.8.
May 31, 20178 yr Alright run "gradlew build" and it should make a build directory + other stuff. After that the jar file should be located under "./build/lib" I believe and then you can release it.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.