Last active
October 4, 2018 07:48
-
-
Save Frontrider/0cded035cb063537f9e10a2673cfaa81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//we declare our configurations, so we can just add the required artifacts as dependencies of this build | |
configurations{ | |
cohfpack | |
thermalpack | |
//make cohfpack contain thermalpack | |
cohfpack.extends thermalpack | |
} | |
dependencies{ | |
cohfpack("path to thermal expansion, just a normal dependency") | |
cohfpack("path to thermal foundation just a normal dependency") | |
//.... | |
} | |
task thermalJar(type:Zip){ | |
arciveName="Cohf-Pack-Full.${project.version}.jar" | |
/*we say: | |
copy from, the contents of the cohfpack configuration, but instead of the zip(jar) files, give me their contents | |
the paths of the files will be preserved, so the package structure is copied properly, unless told otherwise. | |
*/ | |
from(configurations.cohfpack.each{zipTree(it)}){ | |
//we exclude mcmod.info, since it resides in the root of the jar, so we can not use it | |
exclude("*/mcmod.info") | |
} | |
//we include a new composite mcmod.info, | |
//if we want to we can use the dependencies to fetch all of them, and merge them into a single file before we build this. | |
include("path to global mcmod.info") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment