-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
35 lines (31 loc) · 887 Bytes
/
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
plugins {
id 'java'
id "io.freefair.lombok" version "8.10"
}
group = 'com.ashutosh'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation("com.squareup.okhttp3:okhttp:4.12.0")
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
jar{
manifest {
attributes 'Main-Class':'com.ashutosh.Main'
}
//Fat Jar ->A fat jar (also known as uber-jar) is a self-sufficient archive which contains
// both classes and dependencies needed to run an application.
//the fat jar is in build/libs/ in .jar format
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}