mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-17 01:26:45 +00:00
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)
41 lines
874 B
Kotlin
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)
|
|
}
|
|
}
|