Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • [REQUEST] Building
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
Gwafu

[REQUEST] Building

By Gwafu, July 6, 2014 in ForgeGradle

  • Reply to this topic
  • Start new topic

Recommended Posts

Gwafu    0

Gwafu

Gwafu    0

  • Tree Puncher
  • Gwafu
  • Members
  • 0
  • 36 posts
Posted July 6, 2014

Good day!

 

I'm really confused on how the Gradle building system works. I decided just to post a request here and, if possible, be taught about it.

 

Here's my dev space:

 

forge > src > main > java > root >

 

Inside the root folder:

 

> api

>> mod0api

>> mod1api

>> mod2api

> mod0

> mod1

> mod2

 

(Note that all of these are folders, the mod files are inside these.)

 

The api folder contains API stuff used by mod0, mod1, and mod2.

mod2 depends on mod1 which depends on mod0.

 

forge > src > main > resources > assets >

> mod0assets

> mod1assets

> mod2assets

 

Is it possible to make the build result into:

 

mod0.jar

-> root>mod0

-> root>api>mod0api

-> assets>mod0assets

-> mcmod.info

 

mod1.jar

-> root>mod1

-> root>api>mod1api

-> assets>mod1assets

-> mcmod.info

 

mod2.jar

-> root>mod2

-> root>api>mod2api

-> assets>mod2assets

-> mcmod.info

 

Any help is appreciated. Thanks in advance!

  • Quote

Share this post


Link to post
Share on other sites

darthvader45    0

darthvader45

darthvader45    0

  • Creeper Killer
  • darthvader45
  • Members
  • 0
  • 121 posts
Posted July 7, 2014

Good day!

 

I'm really confused on how the Gradle building system works. I decided just to post a request here and, if possible, be taught about it.

 

Here's my dev space:

 

forge > src > main > java > root >

 

Inside the root folder:

 

> api

>> mod0api

>> mod1api

>> mod2api

> mod0

> mod1

> mod2

 

(Note that all of these are folders, the mod files are inside these.)

 

The api folder contains API stuff used by mod0, mod1, and mod2.

mod2 depends on mod1 which depends on mod0.

 

forge > src > main > resources > assets >

> mod0assets

> mod1assets

> mod2assets

 

Is it possible to make the build result into:

 

mod0.jar

-> root>mod0

-> root>api>mod0api

-> assets>mod0assets

-> mcmod.info

 

mod1.jar

-> root>mod1

-> root>api>mod1api

-> assets>mod1assets

-> mcmod.info

 

mod2.jar

-> root>mod2

-> root>api>mod2api

-> assets>mod2assets

-> mcmod.info

 

Any help is appreciated. Thanks in advance!

I found something that might just help you build your project in its separate pieces like you said.

 

 

Link: http://www.minecraftforge.net/forum/index.php?topic=14791.0

  • Quote

Share this post


Link to post
Share on other sites

AbrarSyed    9

AbrarSyed

AbrarSyed    9

  • Stone Miner
  • AbrarSyed
  • Forge Modder
  • 9
  • 51 posts
Posted July 9, 2014

please come on IRC to #ForgeGradle it will be much easier to help you out there.

  • Quote

width=600 height=100http://i56.tinypic.com/ruu0ao.png[/img]

^^ url to be changed.

Share this post


Link to post
Share on other sites

darthvader45    0

darthvader45

darthvader45    0

  • Creeper Killer
  • darthvader45
  • Members
  • 0
  • 121 posts
Posted July 10, 2014

Gwafu is having the problem, not me, but ok.  Plus, if you could contact him Abrar, and get his source, I could see how to build this via the tutorial link I posted.

  • Quote

Share this post


Link to post
Share on other sites

sequituri    118

sequituri

sequituri    118

  • Dragon Slayer
  • sequituri
  • Forge Modder
  • 118
  • 669 posts
Posted August 13, 2014

I got build dependencies like that to work by putting the folders in my settings.gradle file.

  • Quote

-S- (if I helped, please click Thank and applaud)


width=471 height=128http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • ThisIsNotOriginal
      Error at load_registries event phase

      By ThisIsNotOriginal · Posted 39 minutes ago

      The pastebin for the log and Registry Event is posted below this text.   https://pastebin.com/KEzJvRgG https://pastebin.com/VUrXR94k
    • PlasmaPig13
      The game crashed whilst rendering overlay Error: java.lang.NullPointerException: Rendering overlay Exit Code: -1

      By PlasmaPig13 · Posted 44 minutes ago

      Here's the crash report and the loglatest.log crash-2021-03-02_19.33.58-client.txt
    • PlasmaPig13
      The game crashed whilst rendering overlay Error: java.lang.NullPointerException: Rendering overlay Exit Code: -1

      By PlasmaPig13 · Posted 49 minutes ago

      I'm using 1.14.4 forge version 28.2.23 and the game crashes with the title's error message. Also, I'm new here; how do I paste the log? 
    • LexManos
      The vanilla tag system isnt suitable for ore dictionary

      By LexManos · Posted 49 minutes ago

      You can also use conditionals, However empty tags are probably the best way to go. Data gens make any argument of being hard to use moot. So there is nothing we need to do in this reguard.
    • Ilikecheese
      forge 1.16.5 wont show up

      By Ilikecheese · Posted 1 hour ago

      I downloaded forge 1.16.5 but it doesn't show up in my installations, the modded box is checked of and its not there if I try to create it idk what to do
  • Topics

    • ThisIsNotOriginal
      0
      Error at load_registries event phase

      By ThisIsNotOriginal
      Started 39 minutes ago

    • PlasmaPig13
      1
      The game crashed whilst rendering overlay Error: java.lang.NullPointerException: Rendering overlay Exit Code: -1

      By PlasmaPig13
      Started 49 minutes ago

    • EnderiumSmith
      3
      The vanilla tag system isnt suitable for ore dictionary

      By EnderiumSmith
      Started 14 hours ago

    • Ilikecheese
      0
      forge 1.16.5 wont show up

      By Ilikecheese
      Started 1 hour ago

    • GhostGamesFSM
      0
      1.16 Ore generation.

      By GhostGamesFSM
      Started 1 hour ago

  • Who's Online (See full list)

    • ThisIsNotOriginal
    • A1ixir
    • WaromiV
    • Tavi007
    • fluiX
    • Paperbagwastaken
    • fallOut015
    • duracell00122@gmail.com
    • Ilikecheese
    • louvenoir
    • That_Tallone
    • Katie328
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • [REQUEST] Building
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community