49 lines
1.1 KiB
Groovy
49 lines
1.1 KiB
Groovy
plugins {
|
|
id "com.diffplug.spotless"
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'java'
|
|
apply plugin: 'java-library'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'com.diffplug.spotless'
|
|
|
|
group = "io.opentelemetry"
|
|
version = "0.1.0-SNAPSHOT"
|
|
|
|
ext {
|
|
opentelemetryVersion = "0.13.1"
|
|
grpcVersion = '1.30.2'
|
|
protobufVersion = '3.11.4'
|
|
protocVersion = protobufVersion
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
maven {
|
|
// Add snapshot repository
|
|
url "https://oss.jfrog.org/artifactory/oss-snapshot-local"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile platform("io.opentelemetry:opentelemetry-bom:${opentelemetryVersion}")
|
|
compile platform("io.grpc:grpc-bom:${grpcVersion}")
|
|
}
|
|
|
|
spotless {
|
|
java {
|
|
googleJavaFormat("1.9")
|
|
}
|
|
}
|
|
|
|
//create a single Jar with all dependencies
|
|
task fatJar(type: Jar) {
|
|
archiveBaseName = project.name + '-all'
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
with jar
|
|
}
|
|
}
|