-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (62 loc) · 1.7 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
plugins {
id 'java-library'
id 'jacoco'
id 'maven-publish'
}
group = 'com.shzlw'
version = '0.0.1'
repositories {
jcenter()
}
dependencies {
implementation 'com.github.ben-manes.caffeine:caffeine:2.9.0'
implementation 'com.amazonaws:aws-java-sdk-s3:1.11.957'
testImplementation 'junit:junit:4.13'
testImplementation 'org.powermock:powermock-mockito-release-full:1.6.4'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'horiz'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Horiz'
description = 'A Java library that uses S3 as datastore and provides simplified Key-Value APIs'
url = 'https://github.com/shzlw/horiz'
licenses {
license {
name = 'MIT License'
url = 'https://raw.githubusercontent.com/shzlw/horiz/main/LICENSE'
}
}
developers {
developer {
id = 'shzlw'
name = 'Zhonglu Wang'
}
}
}
}
}
}