Empty gradle project (#497)
This commit is contained in:
parent
5ce2f39124
commit
3cd9ffa370
|
@ -0,0 +1,28 @@
|
||||||
|
plugins {
|
||||||
|
id 'org.springframework.boot' version '2.3.0.RELEASE'
|
||||||
|
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
|
||||||
|
id 'java'
|
||||||
|
}
|
||||||
|
|
||||||
|
group = 'io.opentelemetry.instrumentation'
|
||||||
|
version = '0.0.1-SNAPSHOT'
|
||||||
|
|
||||||
|
apply from: "$rootDir/gradle/java.gradle"
|
||||||
|
|
||||||
|
sourceCompatibility = '8'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||||
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||||
|
testImplementation('org.springframework.boot:spring-boot-starter-test') {
|
||||||
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
||||||
|
}
|
||||||
|
|
||||||
|
compileOnly deps.opentelemetryApi
|
||||||
|
compileOnly deps.opentelemetrySdk
|
||||||
|
compileOnly "io.opentelemetry:opentelemetry-exporters-logging:0.5.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
package io.opentelemetry.instrumentation.spring;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
@SpringBootApplication
|
||||||
|
public class Application {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(Application.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
package io.opentelemetry.instrumentation.spring;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
|
||||||
|
@SpringBootTest
|
||||||
|
class ApplicationTests {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void contextLoads() {}
|
||||||
|
|
||||||
|
}
|
|
@ -148,6 +148,7 @@ include ':instrumentation:twilio-6.6'
|
||||||
include ':instrumentation:vertx-testing'
|
include ':instrumentation:vertx-testing'
|
||||||
|
|
||||||
include ':instrumentation-core:aws-sdk:aws-sdk-2.2-core'
|
include ':instrumentation-core:aws-sdk:aws-sdk-2.2-core'
|
||||||
|
include ':instrumentation-core:spring'
|
||||||
|
|
||||||
// exporter adapters
|
// exporter adapters
|
||||||
include ":auto-exporters"
|
include ":auto-exporters"
|
||||||
|
|
Loading…
Reference in New Issue