Skip to content

Commit

Permalink
gradle script to produce v3xt fat jar.
Browse files Browse the repository at this point in the history
  • Loading branch information
h0bb3 committed Feb 26, 2020
1 parent 92781c1 commit c8eb91b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions v3xt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
id "com.github.johnrengelman.shadow" version "5.2.0"
}

group 'v3xt'
Expand Down Expand Up @@ -86,3 +87,23 @@ compileTestKotlin {
jvmTarget = "1.8"
}
}

jar {
manifest {
attributes 'Implementation-Title': 'v3xt',
'Implementation-Version': 1.1,
'Main-Class': 'Main'
}
}

//create a single Jar with all dependencies
/*task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'v3xt',
'Implementation-Version': 1.1,
'Main-Class': 'Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}*/

0 comments on commit c8eb91b

Please sign in to comment.