-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
60 lines (50 loc) · 1.38 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
defaultTasks 'build', 'distZip2'
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'checkstyle'
mainClassName = 'com.grossbart.jslim.JSlimRunner'
applicationName = 'jslim'
/*
* Now we define our application
*/
group = 'JSlim'
version = '0.2-SNAPSHOT'
repositories {
mavenCentral()
}
/*
* We specify our dependencies
*/
dependencies {
compile group: 'com.google.javascript', name: 'closure-compiler', version: 'r1918'
compile group: 'args4j', name: 'args4j', version: '2.0.12'
compile group: 'commons-io', name: 'commons-io', version: '2.0.1'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
jar {
manifest {
attributes 'Main-Class': 'com.grossbart.jslim.JSlim'
}
}
/*
* This task builds a single zip file containing our JAR, all
* the JARs our JAR depends on, and some scripts to run the program.
* It works just like the distZip from the Application plugin, but
* it adds our license and README file to the root of the distribution
* zip file.
*/
task distZip2(dependsOn: installDist, type: Zip) {
from(jar.outputs.files) {
into('lib')
}
from(project.configurations.runtime) {
into('lib')
}
from(startScripts.outputs.files) {
into('bin')
}
from('.') {
include 'LICENSE.txt'
include 'README.md'
}
}