#Java Gradle Submodule Compiling
1 messages ยท Page 1 of 1 (latest)
To create a single jar file containing all your modules, you can use the Gradle Shadow Plugin.
here's an an example of how to set it up in your parent build.gradle file @ornate patio (be aware that it might not work. Been long since I did this):
plugins {
id 'java'
id 'com.yourid' version '7.0.0'
}
group 'net.krisp'
version '1.0.0'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compileOnly 'org.spigotmc:spigot:1.19.3-R0.1-SNAPSHOT'
}
subprojects {
apply plugin: 'java'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation project(':')
}
}
shadowJar {
baseName = 'RisenCore'
version = null
classifier = null
subprojects.each { project ->
from(project.sourceSets.main.output) {
includeEmptyDirs = false
into "modules/${project.name}"
}
}
}```
@ornate patio you here?
Now worries lol, just making sure you saw it ๐
Can you give me the shadow plugin ?
I gtg rn though, if you have any questions leave them here
ye maybe I think 1 sec
I think this is it https://github.com/johnrengelman/shadow
Just look up 'Gradel Shadow plugin' and youll find more info ๐
uhhh
ill check
you're probably better off looking that up lol