|
| 1 | +group = "com.looker.sdk" |
| 2 | +defaultTasks = mutableListOf("jar") |
| 3 | + |
| 4 | +val kotlinVersion = providers.gradleProperty("kotlinVersion").get() |
| 5 | +val googleHttpVersion = providers.gradleProperty("googleHttpVersion").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("commons-configuration:commons-configuration:1.10") |
| 39 | + |
| 40 | + implementation(platform("com.google.http-client:google-http-client-bom:$googleHttpVersion")) |
| 41 | + implementation("com.google.http-client:google-http-client") |
| 42 | + implementation("com.google.http-client:google-http-client-apache-v2") |
| 43 | + implementation("com.google.http-client:google-http-client-gson") |
| 44 | + |
| 45 | + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") |
| 46 | + implementation("com.google.code.gson:gson:2.8.5") |
| 47 | + |
| 48 | + testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1") |
| 49 | + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1") |
| 50 | + testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion") |
| 51 | +} |
| 52 | + |
| 53 | +spotless { |
| 54 | + kotlin { |
| 55 | + ktlint("0.50.0").setEditorConfigPath("$projectDir/../.editorconfig") |
| 56 | + } |
| 57 | +} |
| 58 | + |
| 59 | +kotlin { |
| 60 | + jvmToolchain(17) |
| 61 | +} |
| 62 | + |
| 63 | +tasks.test { |
| 64 | + testLogging { |
| 65 | + exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL |
| 66 | + } |
| 67 | +} |
0 commit comments