plugins {
	id "io.spring.compatibility-test" version "0.0.1"
	id "java-library"
	id "maven-publish"
}

description = "Spring REST Docs REST Assured"

dependencies {
	api(project(":spring-restdocs-core"))
	api("io.rest-assured:rest-assured") {
		exclude group: "commons-logging", module: "commons-logging"
		exclude group: "javax.xml.bind", module: "jaxb-api"
	}
	implementation("jakarta.xml.bind:jakarta.xml.bind-api")
	implementation("org.springframework:spring-web")

	internal(platform(project(":spring-restdocs-platform")))

	testImplementation(testFixtures(project(":spring-restdocs-core")))
	testImplementation("com.fasterxml.jackson.core:jackson-databind")
	testImplementation("junit:junit")
	testImplementation("org.apache.tomcat.embed:tomcat-embed-core:8.5.13")
	testImplementation("org.assertj:assertj-core")
	testImplementation("org.hamcrest:hamcrest-library")
	testImplementation("org.mockito:mockito-core")
}

compatibilityTest {
	dependency("REST Assured") { restAssured ->
		restAssured.groupId = "io.rest-assured"
		restAssured.versions = ["4.0.0", "4.1.2", "4.2.0", "4.3.1"]
	}
}
