-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (77 loc) · 2.54 KB
/
Copy pathbuild.gradle
File metadata and controls
92 lines (77 loc) · 2.54 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
buildscript {
repositories {
maven { url 'http://repo.spring.io/libs-snapshot' }
mavenLocal()
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:1.3.0.RELEASE')
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'application'
tasks.withType(JavaCompile) {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
}
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url 'http://repo.maven.apache.org/maven2'
}
maven {
url 'http://repo.spring.io/release'
}
}
dependencies {
compile('org.apache.kafka:kafka_2.11:0.8.2.2') {
exclude group: 'javax.jms', module: 'jms'
exclude group: 'com.sun.jdmk', module: 'jmxtools'
exclude group: 'com.sun.jmx', module: 'jmxri'
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
compile 'commons-logging:commons-logging:1.1.3'
compile 'log4j:log4j:1.2.17'
compile 'com.google.guava:guava:15.0'
compile 'org.springframework:spring-context:4.2.3.RELEASE'
compile 'org.springframework.hateoas:spring-hateoas:0.9.0.RELEASE'
compile 'com.fasterxml.jackson.core:jackson-core:2.3.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.3.0'
compile 'org.springframework.boot:spring-boot-starter-web:1.3.0.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-actuator:1.3.0.RELEASE'
testCompile 'org.springframework:spring-test:4.2.3.RELEASE'
testCompile 'com.jayway.restassured:rest-assured:2.3.0'
testCompile 'com.jayway.restassured:json-path:2.3.0'
testCompile 'junit:junit:4.12'
testCompile 'org.jmock:jmock:2.6.0'
testCompile 'org.jmock:jmock-junit4:2.6.0'
testCompile 'org.jmock:jmock-legacy:2.6.0'
testCompile 'cglib:cglib-nodep:2.1_3'
testCompile 'org.objenesis:objenesis:1.0'
}
// Create a single jar containing binaries from this project and all its dependencies
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest.attributes('Main-Class': 'org.hpccsystems.streamapi.service.Application')
}
publishing {
publications {
maven(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version project.version
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}