forked from BattleDash/Sider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (45 loc) · 1.06 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
plugins {
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'java'
id 'maven-publish'
}
group 'net.battledash.sider'
version '1.0.0'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
implementation group: 'redis.clients', name: 'jedis', version: '4.2.3'
implementation group: 'com.google.guava', name: 'guava', version: '31.1-jre'
}
test {
useJUnitPlatform()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
shadowJar {
archiveName = "$baseName-$version.$extension"
}
artifacts {
archives sourcesJar
archives javadocJar
archives shadowJar
}
publishing {
publications {
shadow(MavenPublication) {
from components.java
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}