api: initial commit

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-06-03 00:32:17 +05:30
parent 29c374859b
commit fcfcbfbf92
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
17 changed files with 274 additions and 12 deletions

View file

@ -1,9 +1,8 @@
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
jcenter()
google()
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10")
@ -18,21 +17,19 @@ version = "1.0"
allprojects {
repositories {
jcenter()
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
google()
}
apply(plugin = "com.diffplug.spotless")
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("**/*.kt")
targetExclude("**/build/**")
ktlint().userData(mapOf("indent_size" to "2", "continuation_indent_size" to "2"))
ktfmt().googleStyle()
}
kotlinGradle {
target("*.gradle.kts")
ktlint().userData(mapOf("indent_size" to "2", "continuation_indent_size" to "2"))
ktfmt().googleStyle()
}
format("xml") {