-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
80 lines (62 loc) · 1.91 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
plugins {
id 'application'
id 'java-library'
id 'maven-publish'
id "io.freefair.lombok" version "5.3.0"
}
group "xyz.yaseen"
version "1.1-SNAPSHOT"
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation "com.squareup.okhttp3:okhttp:4.9.0"
implementation "com.squareup.okhttp3:okhttp-sse:4.9.0"
implementation "com.squareup.okhttp3:okhttp-urlconnection:4.5.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.9.0" // only needed for debugging http requests
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
implementation 'com.google.code.gson:gson:2.8.6'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
testImplementation 'org.awaitility:awaitility:4.0.3'
}
test {
useJUnitPlatform()
}
javadoc {
source = sourceSets.main.allJava
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': archiveVersion
// 'Main-Class': 'com.mkyong.DateUtils'// no main class b/c this is a library
}
archivesBaseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
ext.javaMainClass = 'airlock.Main'
application {
mainClassName = javaMainClass
}
/*
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
*/