Skip to content

Commit

Permalink
Create extra task for big jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Frotty committed Jun 23, 2017
1 parent 9d39d3f commit 3f86dfd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cache:
script:
- ./gradlew check
- ./gradlew build
- ./gradlew dist

deploy:
skip_cleanup: true
Expand Down
14 changes: 9 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,26 @@ plugins {
id "maven-publish"
id "jacoco"
id "com.github.kt3k.coveralls" version "2.5.0"
id "java"
}

apply plugin: 'java'

group 'systems.crigges'
version '1.5.2'
version '1.5.3'

repositories {
jcenter()
mavenCentral()
}

jar.archiveName = "${jar.baseName}.${jar.extension}"
jar {
from {configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
task dist(type: Jar) {
from files(sourceSets.main.output.classesDir)
from files(sourceSets.main.output.resourcesDir)
from { configurations.compile.collect { zipTree(it) } }
}
dist.dependsOn classes

dist.archiveName = "${jar.baseName}.${jar.extension}"

dependencies {
compile 'com.jcraft:jzlib:1.1.3'
Expand Down

0 comments on commit 3f86dfd

Please sign in to comment.