Skip to content

Instantly share code, notes, and snippets.

@stefanozanella
Created January 12, 2021 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanozanella/b343c7d537ee526f0abaf654c3238d79 to your computer and use it in GitHub Desktop.
Save stefanozanella/b343c7d537ee526f0abaf654c3238d79 to your computer and use it in GitHub Desktop.
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.4.1"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
kotlin("jvm") version "1.4.21"
kotlin("plugin.spring") version "1.4.21"
kotlin("plugin.serialization") version "1.4.21" // <-- (1)
idea
}
group = "me.stefanozanella.sampleapp"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_15
repositories {
mavenCentral()
maven(url = "https://packages.confluent.io/maven")
maven(url = "https://repo.spring.io/plugins-release")
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.kafka:spring-kafka")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("io.confluent:kafka-schema-registry-client:5.3.0")
implementation("org.apache.avro:avro:1.10.1")
implementation("io.confluent:kafka-avro-serializer:5.3.0")
implementation("com.sksamuel.avro4k:avro4k-core:0.41.0") // <-- (2)
developmentOnly("org.springframework.boot:spring-boot-devtools")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "15"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment