Commit 58d5cdc4 authored by cuongvt2's avatar cuongvt2

update build.gradle fat jar

parent c5741d91
Pipeline #1510 failed with stages
RenderServer
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="17" />
<bytecodeTargetLevel target="11" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
......@@ -11,6 +11,29 @@ repositories {
mavenCentral()
}
ext {
javaMainClass = "main"
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
zip64 = true
manifest {
attributes(
"Main-Class": javaMainClass
)
}
baseName = project.name + '-all'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}
sourceSets {
main {
java.srcDirs = ['src/main/java', 'build/classes/java/main']
......@@ -39,6 +62,7 @@ protobuf {
}
}
rootProject.tasks.named("processResources"){
duplicatesStrategy = 'include'
}
......@@ -70,6 +94,7 @@ dependencies {
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
//defaultTasks 'build'
test {
useJUnitPlatform()
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment