-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
90 lines (79 loc) · 2.32 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
plugins {
id 'com.github.maiflai.scalatest' version '0.23'
id 'nebula.integtest' version '5.1.2'
id 'com.jfrog.bintray' version '1.8.4'
id "com.adtran.scala-multiversion-plugin" version '1.0.33'
}
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'com.adtran.scala-multiversion-plugin'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.github.maiflai.scalatest'
apply plugin: 'nebula.integtest'
apply plugin: 'com.jfrog.bintray'
group = 'io.kamon'
repositories {
mavenCentral()
maven {
url 'https://dl.bintray.com/segence/maven-oss-releases'
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['ProjectPublication']
pkg {
repo = 'maven-oss-releases'
name = 'kamon-jmx-collector'
userOrg = 'segence'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/segence/kamon-jmx-collector.git'
}
}
task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}
task printVersion {
doLast {
println project.version
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
dependencies {
compileOnly(
"org.scala-lang:scala-library:${scalaVersion}",
"com.typesafe:config:${typesafeConfigVersion}",
"io.kamon:kamon-core_%%:${kamonVersion}",
"com.typesafe.akka:akka-actor_%%:${akkaVersion}"
)
compile(
"com.segence.commons:jmx-collector:${jmxCollectorVersion}"
)
testCompile (
"org.scalatest:scalatest_%%:${scalaTestVersion}",
"org.mockito:mockito-core:${mockitoVersion}",
"org.scala-lang:scala-library:${scalaVersion}",
"com.typesafe:config:${typesafeConfigVersion}",
"io.kamon:kamon-core_%%:${kamonVersion}",
"com.typesafe.akka:akka-actor_%%:${akkaVersion}",
"com.typesafe.akka:akka-testkit_%%:${akkaVersion}",
"io.kamon:kamon-prometheus_%%:${kamonPrometheusVersion}",
"org.apache.kafka:kafka_%%:2.4.1",
"org.slf4j:slf4j-api:1.7.25",
"org.slf4j:slf4j-simple:1.7.25"
)
testRuntime "org.pegdown:pegdown:${pegdownVersion}"
}
publishing {
publications {
ProjectPublication(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
}