44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
plugins {
 | 
						|
  id("org.xbib.gradle.plugin.jflex")
 | 
						|
 | 
						|
  id("otel.java-conventions")
 | 
						|
  id("otel.animalsniffer-conventions")
 | 
						|
  id("otel.jacoco-conventions")
 | 
						|
  id("otel.japicmp-conventions")
 | 
						|
  id("otel.publish-conventions")
 | 
						|
}
 | 
						|
 | 
						|
group = "io.opentelemetry.instrumentation"
 | 
						|
 | 
						|
dependencies {
 | 
						|
  api("io.opentelemetry.semconv:opentelemetry-semconv")
 | 
						|
  api("io.opentelemetry.semconv:opentelemetry-semconv-incubating")
 | 
						|
  api(project(":instrumentation-api"))
 | 
						|
  implementation("io.opentelemetry:opentelemetry-api-incubator")
 | 
						|
 | 
						|
  compileOnly("com.google.auto.value:auto-value-annotations")
 | 
						|
  annotationProcessor("com.google.auto.value:auto-value")
 | 
						|
 | 
						|
  testImplementation(project(":testing-common"))
 | 
						|
  testImplementation("io.opentelemetry:opentelemetry-sdk")
 | 
						|
  testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
 | 
						|
}
 | 
						|
 | 
						|
tasks {
 | 
						|
  // exclude auto-generated code
 | 
						|
  named<Checkstyle>("checkstyleMain") {
 | 
						|
    exclude("**/AutoSqlSanitizer.java")
 | 
						|
  }
 | 
						|
 | 
						|
  // Work around https://github.com/jflex-de/jflex/issues/762
 | 
						|
  compileJava {
 | 
						|
    with(options) {
 | 
						|
      compilerArgs.add("-Xlint:-fallthrough")
 | 
						|
    }
 | 
						|
  }
 | 
						|
 | 
						|
  sourcesJar {
 | 
						|
    dependsOn("generateJflex")
 | 
						|
  }
 | 
						|
}
 |