|
| 1 | +group = "com.looker.sdk" |
| 2 | +defaultTasks = mutableListOf("jar") |
| 3 | + |
| 4 | +val kotlinVersion = providers.gradleProperty("kotlinVersion").get() |
| 5 | +val ktorVersion = providers.gradleProperty("ktorVersion").get() |
| 6 | + |
| 7 | +plugins { |
| 8 | + kotlin("jvm") |
| 9 | + id("com.diffplug.spotless") |
| 10 | +} |
| 11 | + |
| 12 | +sourceSets { |
| 13 | + main { |
| 14 | + kotlin { |
| 15 | + setSrcDirs(listOf("src/main/")) |
| 16 | + } |
| 17 | + } |
| 18 | + test { |
| 19 | + kotlin { |
| 20 | + setSrcDirs(listOf("src/test")) |
| 21 | + } |
| 22 | + } |
| 23 | +} |
| 24 | + |
| 25 | +repositories { |
| 26 | + mavenCentral() |
| 27 | + maven { url = uri("https://dl.bintray.com/kotlin/ktor") } |
| 28 | + maven { url = uri("https://dl.bintray.com/kotlin/kotlinx") } |
| 29 | + maven { url = uri("https://jitpack.io") } |
| 30 | +} |
| 31 | + |
| 32 | +dependencies { |
| 33 | + implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion") |
| 34 | + |
| 35 | + implementation("io.github.cdimascio:dotenv-kotlin:6.2.2") |
| 36 | + implementation("org.ini4j:ini4j:0.5.4") |
| 37 | + |
| 38 | + implementation("io.ktor:ktor-client:$ktorVersion") |
| 39 | + implementation("io.ktor:ktor-client-okhttp:$ktorVersion") |
| 40 | + implementation("io.ktor:ktor-client-json:$ktorVersion") |
| 41 | + implementation("io.ktor:ktor-client-gson:$ktorVersion") |
| 42 | + |
| 43 | + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") |
| 44 | + implementation("com.google.code.gson:gson:2.8.5") |
| 45 | + |
| 46 | + testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1") |
| 47 | + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1") |
| 48 | + testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion") |
| 49 | +} |
| 50 | + |
| 51 | +spotless { |
| 52 | + kotlin { |
| 53 | + ktlint("0.50.0").setEditorConfigPath("$projectDir/../.editorconfig") |
| 54 | + } |
| 55 | +} |
| 56 | + |
| 57 | +kotlin { |
| 58 | + jvmToolchain(17) |
| 59 | +} |
| 60 | + |
| 61 | +tasks.test { |
| 62 | + testLogging { |
| 63 | + exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL |
| 64 | + } |
| 65 | +} |
0 commit comments