Skip to content

Commit b810c9c

Browse files
author
Max Presman
committed
swap to gradle part 1
1 parent dc7b221 commit b810c9c

9 files changed

Lines changed: 343 additions & 217 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ war/WEB-INF/deploy/
4242
war/WEB-INF/classes/
4343

4444
target
45-
45+
build
46+
.gradle

‎build.gradle‎

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
plugins {
2+
id 'io.franzbecker.gradle-lombok' version '1.6'
3+
id 'com.github.johnrengelman.shadow' version '1.2.3'
4+
id 'java'
5+
id 'jacoco'
6+
id 'maven'
7+
id 'checkstyle'
8+
id 'findbugs'
9+
}
10+
group = 'com.pubnub'
11+
version = '4.0.0-beta1'
12+
13+
description = """"""
14+
15+
sourceCompatibility = 1.7
16+
targetCompatibility = 1.7
17+
18+
configurations.all {
19+
}
20+
21+
repositories {
22+
23+
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
24+
maven { url "http://repo.maven.apache.org/maven2" }
25+
maven { url "https://plugins.gradle.org/m2/" }
26+
}
27+
28+
dependencies {
29+
compile group: 'com.squareup.retrofit2', name: 'retrofit', version:'2.0.2'
30+
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:'2.7.3'
31+
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:'2.7.3'
32+
compile group: 'com.squareup.retrofit2', name: 'converter-jackson', version:'2.0.2'
33+
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version:'3.2.0'
34+
compile group: 'org.slf4j', name: 'slf4j-nop', version:'1.7.21'
35+
36+
testCompile group: 'ch.qos.logback', name: 'logback-classic', version:'1.1.7'
37+
testCompile group: 'ch.qos.logback', name: 'logback-core', version:'1.1.7'
38+
testCompile group: 'junit', name: 'junit', version:'4.12'
39+
testCompile group: 'com.github.tomakehurst', name: 'wiremock', version:'1.58'
40+
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version:'1.3'
41+
testCompile group: 'com.jayway.awaitility', name: 'awaitility', version:'1.7.0'
42+
}
43+
44+
jacoco {
45+
toolVersion = "0.7.6.201602180812"
46+
}
47+
48+
jacocoTestReport {
49+
reports {
50+
xml.enabled = true
51+
html.enabled = true
52+
}
53+
}
54+
55+
checkstyle {
56+
configFile = new File(rootDir, "src/test/checkstyle.xml")
57+
toolVersion = '6.17'
58+
ignoreFailures = true
59+
}
60+
61+
findbugs {
62+
ignoreFailures = true
63+
}
64+
65+
tasks.withType(Checkstyle) {
66+
reports {
67+
xml.enabled = true
68+
html.enabled = true
69+
}
70+
}
71+
72+
tasks.withType(FindBugs) {
73+
reports {
74+
xml.enabled false
75+
html.enabled true
76+
}
77+
}
78+
79+
check.dependsOn jacocoTestReport
80+
81+
processResources {
82+
expand projectVersion: project.version
83+
}

‎gradle/wrapper/gradle-wrapper.jar‎

52.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sun May 01 11:48:10 PDT 2016
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip

‎gradlew‎

Lines changed: 160 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎gradlew.bat‎

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)