-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
41 lines (34 loc) · 1.17 KB
/
build.gradle
File metadata and controls
41 lines (34 loc) · 1.17 KB
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
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'application'
apply plugin: 'eclipse'
version = '1.0'
sourceCompatibility = 1.6
targetCompatibility = 1.6
//create a single Jar with all dependencies
task createJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Orange password rest',
'Implementation-Version': version,
'Main-Class': 'com.o2.orange.PasswordResetUtility'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
mavenCentral()
}
dependencies {
compile "org.codehaus.jackson:jackson-mapper-asl:1.9.13"
compile "org.apache.httpcomponents:httpclient:4.4.1"
compile group: 'com.sun.jersey', name: 'jersey-client', version: '1.8'
compile group: 'org.json', name: 'json', version: '20140107'
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.13'
testCompile "junit:junit:4.12"
}
sourceSets.main.resources.srcDirs = ['src/main/resources']
applicationDistribution.from(files('application.properties', 'UidsForPasswordToReset')) {
into('bin/')
}