Slackbot
06/21/2023, 2:14 PMThomas Broyer
06/21/2023, 2:54 PMsourceSets.main.output and configurations.runtimeClasspath are already exposed as the runtimeElements of Java projects, so declare a configuration and add those target projects as dependencies to that configuration and it should "just work".Thomas Broyer
06/21/2023, 2:55 PMThomas Broyer
06/21/2023, 2:56 PMruntimeClasspath.get().files that resolves the configuration too early)Vampire
06/21/2023, 3:02 PMapplication plugin. See https://fatjar.net for some quotes on why it is a bad idea.
If you really need to follow that road, at least us the shadow plugin of John Engelman which mitigates at least some of the problems you get from trying this.อรรณพ กองสมบัติเจริญ (tofu)
06/21/2023, 3:09 PMjar artifacts so previous method I use intellij to create jar but I need to convert to create by command line for use in CI.
As I know to add from compare with previous method.
• all main of subproject
• kapt because I use some generate lib to create fule
• all dependencies each use in subprojectอรรณพ กองสมบัติเจริญ (tofu)
06/21/2023, 3:10 PMshadow are you mean this way?
plugins {
alias(libs.plugins.shadow)
}
shadowJar {
}Vampire
06/21/2023, 3:10 PMapplication plugin to build a proper distribution and save you a lot of headache.Vampire
06/21/2023, 3:11 PMอรรณพ กองสมบัติเจริญ (tofu)
06/21/2023, 3:12 PMcom.github.johnrengelman.shadow
I can't use normal way to build app because I need to create jar for mod game and that game to call function in my jar file 😭Vampire
06/21/2023, 3:17 PM