plugins {
	id 'org.springframework.boot' version '2.7.0'
	id 'io.spring.dependency-management' version '1.0.11.RELEASE'
	id 'java'
}

java {
	sourceCompatibility = JavaVersion.VERSION_1_8
	targetCompatibility = JavaVersion.VERSION_1_8
}

dependencies {

	implementation project(":repository")
	implementation project(":runtime")

	implementation("org.babyfish.jimmer:jimmer-spring-boot-starter:${jimmerVersion}")

	annotationProcessor "org.babyfish.jimmer:jimmer-apt:${jimmerVersion}"

	implementation 'org.springframework.boot:spring-boot-starter-graphql'
	implementation 'com.graphql-java:graphql-java-extended-scalars:18.1'
	implementation 'org.springframework.boot:spring-boot-starter-web'

	runtimeOnly 'com.h2database:h2:2.1.212'
	runtimeOnly 'mysql:mysql-connector-java:8.0.30'
	runtimeOnly 'org.postgresql:postgresql:42.6.0'
	runtimeOnly 'io.lettuce:lettuce-core:6.2.0.RELEASE'
	runtimeOnly 'com.github.ben-manes.caffeine:caffeine:2.9.1'
}

repositories {
	mavenCentral()
}

tasks.named('test') {
	useJUnitPlatform()
}
