-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (56 loc) · 2.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
57
58
59
60
61
62
63
64
65
66
67
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version "${shadowVersion}"
}
group 'org.oba.valkey.extra.utils'
version "${projectVersion}"
sourceCompatibility = "${javaVersion}"
targetCompatibility = "${javaVersion}"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation "io.valkey:valkey-java:${valkeyJavaVersion}"
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
implementation group: 'org.javassist', name: 'javassist', version: "${javassistVersion}"
testImplementation group: 'junit', name: 'junit', version: "${junitVersion}"
testImplementation group: 'org.mockito', name: 'mockito-core', version: "${mockitoVersion}"
testImplementation group: 'org.powermock', name: 'powermock-core', version: "${powermockVersion}"
testImplementation group: 'org.powermock', name: 'powermock-api-mockito2', version: "${powermockVersion}"
testImplementation group: 'org.powermock', name: 'powermock-module-junit4', version: "${powermockVersion}"
testImplementation "org.slf4j:slf4j-simple:${slf4jVersion}"
/*
To #mockitoVersion=4.7.0 or more
testImplementation group: 'org.mockito', name: 'mockito-core', version: "${mockitoVersion}"
testImplementation group: 'org.mockito', name: 'mockito-inline', version: "${mockitoVersion}"
*/
// sadly doesnt work => testImplementation 'com.github.fppt:jedis-mock:0.1.14'
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
csv.required = false
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/oscar-besga-panel/JedisExtraUtils")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
shadowJar {
manifest {
attributes 'Description': 'https://github.com/oscar-besga-panel/valkey-java-extrautils'
}
}
check.dependsOn jacocoTestReport