github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/tracing/jaeger/java/rideshare/build.gradle.kts (about)

     1  plugins {
     2      id("java")
     3      id("org.springframework.boot") version "2.7.1"
     4      id("io.spring.dependency-management") version "1.0.11.RELEASE"
     5  }
     6  
     7  group = "org.example"
     8  version = "1.0-SNAPSHOT"
     9  
    10  repositories {
    11      mavenCentral()
    12      maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
    13      maven("https://repo.spring.io/snapshot")
    14      maven("https://repo.spring.io/milestone")
    15      maven("https://repo.spring.io/release")
    16  
    17  }
    18  
    19  dependencies {
    20      implementation("io.pyroscope:otel:0.10.1.3")
    21      implementation(platform("io.opentelemetry:opentelemetry-bom:1.15.0"))
    22      implementation("io.opentelemetry:opentelemetry-api")
    23      implementation("io.opentelemetry:opentelemetry-sdk")
    24      implementation("io.opentelemetry:opentelemetry-exporter-jaeger")
    25      implementation("org.springframework.boot:spring-boot-starter-web")
    26      implementation("org.springframework.cloud:spring-cloud-starter-sleuth") {
    27          exclude(group = "org.springframework.cloud", module = "spring-cloud-sleuth-brave")
    28      }
    29      implementation("org.springframework.cloud:spring-cloud-sleuth-otel-autoconfigure")
    30  
    31  
    32      testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
    33      testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
    34  }
    35  dependencyManagement {
    36      imports {
    37          mavenBom("org.springframework.cloud:spring-cloud-dependencies:2021.0.3")
    38          mavenBom("org.springframework.cloud:spring-cloud-sleuth-otel-dependencies:1.1.0-M7")
    39      }
    40  }
    41  
    42  tasks.getByName<Test>("test") {
    43      useJUnitPlatform()
    44  }
    45  
    46  tasks.create<Copy>("getDeps") {
    47      from(configurations.getByName("compileClasspath"))
    48      into("compileClasspath/")
    49  }