Skip to content

Commit 7223f1f

Browse files
authored
add: fatJar gradle (#16)
2 parents 288a821 + 4918658 commit 7223f1f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

build.gradle

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,24 @@ repositories {
66
}
77

88
group = 'org.typesense'
9-
version = '0.1.0'
9+
version = '0.0.2'
1010
sourceCompatibility = 1.8
1111
targetCompatibility = 1.8
1212

1313
jar {
14-
archiveBaseName = 'typesense-java'
14+
manifest {
15+
attributes "Main-Class": "org.typesense.api.Client"
16+
}
17+
18+
from {
19+
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
20+
} {
21+
exclude "META-INF/*.SF"
22+
exclude "META-INF/*.DSA"
23+
exclude "META-INF/*.RSA"
24+
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
25+
}
26+
1527
}
1628

1729
sourceSets {

0 commit comments

Comments
 (0)