-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
130 lines (116 loc) · 3.71 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
plugins {
id "org.sonarqube" version "2.6"
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'findbugs'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
repositories {
maven {
url "https://nexus.lukecollins.net/repository/maven-public/"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
}
sonarqube {
properties {
property "sonar.projectName", "CloudFlare-API-Tool"
property "sonar.projectKey", "CloudFlare-API-Tool"
property "sonar.host.url", "https://sonarqube.com"
}
}
checkstyle {
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
toolVersion = '8.4'
ignoreFailures = false
}
findbugs {
toolVersion = '3.0.1'
ignoreFailures = false
effort = 'max'
reportLevel = 'low'
}
jacoco {
toolVersion = '0.7.9'
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
test {
filter {
includeTestsMatching "net.lukecollins.dev.cloudflare.AllTests"
}
testLogging {
events "passed", "skipped", "failed"
}
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'net.java.dev.jna', name: 'jna-platform', version: '4.5.0'
compile group: 'net.java.dev.jna', name: 'jna', version: '4.5.0'
compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.5.3'
compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.8'
compile group: 'org.apache.httpcomponents', name: 'httpclient-win', version: '4.5.3'
compile group: 'org.apache.httpcomponents', name: 'httpclient-cache', version: '4.5.3'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
compile group: 'org.apache.httpcomponents', name: 'fluent-hc', version: '4.5.3'
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
compile group: 'org.json', name: 'json', version: '20171018'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.12.0'
testCompile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
testCompile group: 'net.java.dev.jna', name: 'jna-platform', version: '4.5.0'
testCompile group: 'net.java.dev.jna', name: 'jna', version: '4.5.0'
testCompile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.5.3'
testCompile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.8'
testCompile group: 'org.apache.httpcomponents', name: 'httpclient-win', version: '4.5.3'
testCompile group: 'org.apache.httpcomponents', name: 'httpclient-cache', version: '4.5.3'
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
testCompile group: 'org.apache.httpcomponents', name: 'fluent-hc', version: '4.5.3'
testCompile group: 'commons-logging', name: 'commons-logging', version: '1.2'
testCompile group: 'commons-codec', name: 'commons-codec', version: '1.11'
testCompile group: 'org.json', name: 'json', version: '20171018'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'net.lukecollins'
artifactId 'cloudflare-api-tool'
version System.getenv('VERSION')
from components.java
}
}
repositories {
maven {
credentials {
username System.getenv('NEXUS_USR')
password System.getenv('NEXUS_PASS')
}
url "https://nexus.lukecollins.net/repository/lcnet/"
}
}
}
sourceSets {
main {
java {
srcDirs = ['src/main/']
}
resources {
srcDirs = ['conf/']
}
}
test {
java {
srcDirs = ['src/test/']
}
}
}