-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (93 loc) · 3.43 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
107
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'io.github.huynhsamha'
version '0.0.1-SNAPSHOT-LOCAL'
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
implementation('io.prometheus:simpleclient:0.10.0')
implementation('io.prometheus:simpleclient_hotspot:0.10.0')
implementation('io.prometheus:simpleclient_httpserver:0.10.0')
implementation('io.prometheus:simpleclient_servlet:0.10.0')
implementation('io.prometheus:simpleclient_jetty:0.10.0')
implementation('io.prometheus:simpleclient_pushgateway:0.10.0')
implementation('org.rocksdb:rocksdbjni:6.15.2')
testImplementation('org.apache.commons:commons-lang3:3.11')
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'jrocksdb-exporter'
from components.java
pom {
name = 'Java RocksDB Prometheus Exporter'
description = 'Prometheus Exporter for RocksJava. Monitor Java RocksDB by using Prometheus and Grafana.'
url = 'https://github.com/huynhsamha/java-rocksdb-prometheus-exporter/'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'huynhsamha'
name = 'Ha Huynh'
email = 'huynhsamha@gmail.com'
}
}
scm {
connection = 'scm:git:git://github.com/huynhsamha/java-rocksdb-prometheus-exporter.git'
developerConnection = 'scm:git:ssh://github.com/huynhsamha/java-rocksdb-prometheus-exporter.git'
url = 'https://github.com/huynhsamha/java-rocksdb-prometheus-exporter/'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/huynhsamha/java-rocksdb-prometheus-exporter/issues'
}
organization {
name = 'io.github.huynhsamha'
url = 'https://github.com/huynhsamha'
}
}
}
}
repositories {
maven {
def localReleasesRepoUrl = "$buildDir/repos/releases"
def localSnapshotsRepoUrl = "$buildDir/repos/snapshots"
def snapshotsRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
url = version.endsWith('LOCAL') ?
(version.endsWith('SNAPSHOT-LOCAL') ? localSnapshotsRepoUrl : localReleasesRepoUrl)
:
(version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl)
credentials {
username "$sonatypeUsername"
password "$sonatypePassword"
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}