Files
flatbuffers/kotlin/build.gradle.kts
Paulo Pinheiro df2df21ec1 [Kotlin] Bump kotlinx.benchmark dependency to 0.3.0 (#6560)
Kotlinx.benchmark project just abandoned bintray and moving to maven central,
removing the artifacts from bintray and causing missing dependencies in our build.
So we are updating the dependency to point to the new version on maven central.

More information in:

53ee45d0d9 (diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5)
2021-04-12 13:47:40 -07:00

41 lines
874 B
Kotlin

plugins {
id("com.diffplug.spotless") version "5.8.2"
}
group = "com.google.flatbuffers"
version = "1.12.0-SNAPSHOT"
subprojects {
repositories {
maven { setUrl("https://plugins.gradle.org/m2/") }
mavenCentral()
}
}
buildscript {
repositories {
maven { setUrl("https://plugins.gradle.org/m2/") }
gradlePluginPortal()
mavenCentral()
}
}
// plugin used to enforce code style
spotless {
val klintConfig = mapOf("indent_size" to "2", "continuation_indent_size" to "2")
kotlin {
target("**/*.kt")
ktlint("0.40.0").userData(klintConfig)
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
licenseHeaderFile("$rootDir/spotless/spotless.kt").updateYearWithLatest(false)
targetExclude("**/spotless.kt", "**/build/**")
}
kotlinGradle {
target("*.gradle.kts")
ktlint().userData(klintConfig)
}
}