Skip to content

Commit

Permalink
gradle: Shaded jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Owain94 committed Jul 24, 2019
1 parent ec9c355 commit 89be222
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions runelite-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'java'
}

description = 'RuneLite Client'

dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.25'
compile group: 'ch.qos.logback', name: 'logback-classic', version:'1.2.3'
Expand Down Expand Up @@ -48,3 +53,20 @@ exclude(module: 'xz')
annotationProcessor group: 'org.projectlombok', name: 'lombok', version:'1.18.8'
compileOnly group: 'net.runelite', name: 'orange-extensions', version:'1.0'
}

tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}

jar {
manifest {
attributes 'Main-Class': 'net.runelite.client.RuneLite'
}
}

shadowJar {
classifier = "shaded"
}

tasks.build.dependsOn tasks.shadowJar

0 comments on commit 89be222

Please sign in to comment.