-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
106 lines (86 loc) · 2.38 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
plugins {
id 'java'
id 'maven-publish'
id 'me.champeau.gradle.jmh' version '0.5.0'
id 'net.researchgate.release' version '2.8.1'
id 'com.jfrog.bintray' version '1.8.4'
}
group 'me.k11i'
sourceCompatibility = 8
repositories {
mavenCentral()
}
dependencies {
implementation group: 'com.google.guava', name: 'guava', version: '28.2-jre'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.4.2'
}
test {
useJUnitPlatform()
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
afterSuite { desc, result ->
if (!desc.parent) {
println "\nTest result: ${result.resultType}"
println "Test summary: ${result.testCount} tests, " +
"${result.successfulTestCount} succeeded, " +
"${result.failedTestCount} failed, " +
"${result.skippedTestCount} skipped"
}
}
}
jmh {
timeUnit = 'ms'
resultFormat = 'CSV'
}
javadoc {
options.locale = 'en_US'
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
release {
preTagCommitMessage = '[skip ci] [Gradle Release Plugin] - pre tag commit: '
newVersionCommitMessage = '[skip ci] [Gradle Release Plugin] - new version commit: '
git {
requireBranch = 'master'
}
}
afterReleaseBuild.dependsOn(bintrayUpload)
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'xor-filter'
userOrg = 'komiya-atsushi'
licenses = ['MIT']
websiteUrl = 'https://github.com/komiya-atsushi/xor-filter'
issueTrackerUrl = 'https://github.com/komiya-atsushi/xor-filter/issues'
vcsUrl = 'https://github.com/komiya-atsushi/xor-filter.git'
version {
name = project.version
desc = 'Yet another Java implementation of the Xor Filters'
}
}
}