-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
34 lines (27 loc) · 750 Bytes
/
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
apply plugin: 'java'
apply plugin: 'gradle-one-jar'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.rholder:gradle-one-jar:1.0.4'
}
}
sourceCompatibility = 1.7
version = '1.1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile(
[group: 'com.sparkjava', name: 'spark-core', version: '1.1.1'],
[group: 'commons-codec', name: 'commons-codec', version: '1.10'],
[group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.2']
)
testCompile(group: 'junit', name: 'junit', version: '4.11')
}
task oneJarWithMainClass(type: OneJar) {
mainClass = 'org.encryptor.simple.Starter'
}
build.dependsOn(oneJarWithMainClass)