Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Pass variable from one gradle script to another [SOLVED]


Recommended Posts

Hello guys!


I have two sub-projects (two mods) in a gradle main project and everytime I build one of these mods the other one is loaded too, but not built. One of these mods needs a core and I want to pass the build of the core project when it's loaded to the other mod. I tried

project.ext.coreBuild = ...

in the core's build.gradle and

replace "@@CORE_BUILD@@", project.ext.coreBuild

in the mod's build.gradle, but when I start building I get the error that the variable isn't defined.


I don't know much about gradle and it would be very nice if you can help me.


Thanks, cbOP_

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.