-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
55 lines (48 loc) · 1.47 KB
/
build.gradle
File metadata and controls
55 lines (48 loc) · 1.47 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
plugins {
id 'java'
id 'maven-publish'
id 'org.cadixdev.licenser' version '0.5.0'
}
group 'nl.kingdev.graphqlclient'
version '1.0'
def ENV = System.getenv()
version = version + "-" + (ENV.BUILD_NUMBER ? ("build." + ENV.GIT_HASH) : "custom")
java {
withJavadocJar()
}
repositories {
mavenCentral()
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
repositories {
maven {
name "KingdevNL"
url "https://nexus.kingdev.nl/repository/maven/"
credentials {
username System.getenv("REG_CREDS_USR")
password System.getenv("REG_CREDS_PSW")
}
}
}
}
dependencies {
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
// https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
// https://github.com/TooTallNate/Java-WebSocket
compile 'org.java-websocket:Java-WebSocket:1.5.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
testCompileOnly 'org.projectlombok:lombok:1.18.16'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.16'
}
license {
header = project.file("LICENSE")
}