Skip to content

Commit

Permalink
Fix jar packing
Browse files Browse the repository at this point in the history
  • Loading branch information
keizer619 committed Mar 2, 2020
1 parent 9ba2202 commit 2e3e91d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apply plugin: 'maven-publish'
group = project.group
version = project.version

task fatJar(type: Jar) {
jar {
manifest {
attributes(
'Main-Class': 'org.ballerinalang.command.Main',
Expand All @@ -31,7 +31,6 @@ task fatJar(type: Jar) {
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}

CopySpec copyJarSpec = copySpec {
Expand Down Expand Up @@ -59,7 +58,7 @@ publishing {
groupId project.group
artifactId project.name
version = project.version
artifact fatJar
artifact jar
}
mavenJava(MavenPublication) {
groupId project.group
Expand Down

0 comments on commit 2e3e91d

Please sign in to comment.