12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- plugins {
- id("otel.javaagent-instrumentation")
- id("org.unbroken-dome.test-sets")
- }
- muzzle {
- fail {
- group.set("com.vaadin")
- module.set("flow-server")
- versions.set("[,2.2.0)")
- }
- pass {
- group.set("com.vaadin")
- module.set("flow-server")
- versions.set("[2.2.0,3)")
- }
- fail {
- group.set("com.vaadin")
- module.set("flow-server")
- versions.set("[3.0.0,3.1.0)")
- }
- pass {
- group.set("com.vaadin")
- module.set("flow-server")
- versions.set("[3.1.0,23.3.0)")
- }
- }
- testSets {
- create("vaadin142Test")
- create("vaadin14LatestTest")
- create("vaadin16Test")
- create("latestDepTest") {
- dirName = "vaadinLatestTest"
- }
- }
- tasks {
- val vaadin142Test by existing
- val vaadin16Test by existing
- val vaadin14LatestTest by existing
- test {
- dependsOn(vaadin142Test)
- dependsOn(vaadin16Test)
- if (findProperty("testLatestDeps") as Boolean) {
- dependsOn(vaadin14LatestTest)
- }
- usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
- }
- }
- dependencies {
- compileOnly("com.google.auto.value:auto-value-annotations")
- annotationProcessor("com.google.auto.value:auto-value")
- bootstrap(project(":instrumentation:servlet:servlet-common:bootstrap"))
- compileOnly("com.vaadin:flow-server:2.2.0")
- add("vaadin16TestImplementation", "com.vaadin:vaadin-spring-boot-starter:16.0.0")
- add("vaadin142TestImplementation", "com.vaadin:vaadin-spring-boot-starter:14.2.0")
- testImplementation(project(":instrumentation:vaadin-14.2:testing"))
- testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
- testInstrumentation(project(":instrumentation:servlet:servlet-javax-common:javaagent"))
- testInstrumentation(project(":instrumentation:tomcat:tomcat-7.0:javaagent"))
- add("vaadin14LatestTestImplementation", "com.vaadin:vaadin-spring-boot-starter:14.+")
- add("latestDepTestImplementation", "com.vaadin:vaadin-spring-boot-starter:23.2.+")
- }
- configurations {
- listOf(
- testRuntimeClasspath,
- named("vaadin142TestRuntimeClasspath"),
- named("vaadin14LatestTestRuntimeClasspath"),
- named("vaadin16TestRuntimeClasspath"),
- named("latestDepTestRuntimeClasspath"),
- )
- .forEach {
- it.configure {
- resolutionStrategy {
- // requires old logback (and therefore also old slf4j)
- force("ch.qos.logback:logback-classic:1.2.11")
- force("org.slf4j:slf4j-api:1.7.36")
- }
- }
- }
- }
|