|
1 |
| -@file:Suppress("OPT_IN_IS_NOT_ENABLED") |
2 |
| - |
3 |
| -import de.fayard.refreshVersions.core.RefreshVersionsCorePlugin |
4 |
| -import de.fayard.refreshVersions.core.internal.InternalRefreshVersionsApi |
5 | 1 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
6 | 2 |
|
7 | 3 | plugins {
|
8 |
| - `kotlin-dsl` |
| 4 | + `kotlin-dsl` |
9 | 5 | }
|
10 | 6 |
|
11 | 7 | repositories {
|
12 |
| - gradlePluginPortal() |
13 |
| - mavenCentral() |
14 |
| - google() |
| 8 | + gradlePluginPortal() |
| 9 | + mavenCentral() |
| 10 | + google() |
| 11 | + if (findProperty("project.enableSnapshots") == "true") { |
| 12 | + maven("https://oss.sonatype.org/content/repositories/snapshots") |
| 13 | + } |
15 | 14 | }
|
16 | 15 |
|
17 | 16 | dependencies {
|
18 |
| - implementation("com.android.tools.build:gradle:_") |
19 |
| - implementation("org.jetbrains.compose:compose-gradle-plugin:_") |
20 |
| - implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:_") |
21 |
| - implementation("com.github.jakemarsden:git-hooks-gradle-plugin:_") |
22 |
| - implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:_") |
23 |
| - implementation("io.github.gradle-nexus:publish-plugin:_") |
24 |
| - implementation("org.jetbrains.dokka:dokka-gradle-plugin:_") |
25 |
| - implementation("dev.petuska:klip-gradle-plugin:_") |
26 |
| - @OptIn(InternalRefreshVersionsApi::class) |
27 |
| - implementation("de.fayard.refreshVersions:refreshVersions-core:${RefreshVersionsCorePlugin.currentVersion}") |
| 17 | + implementation("com.android.tools.build:gradle:_") |
| 18 | + implementation("org.jetbrains.compose:compose-gradle-plugin:_") |
| 19 | + implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:_") |
| 20 | + implementation("com.github.jakemarsden:git-hooks-gradle-plugin:_") |
| 21 | + implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:_") |
| 22 | + implementation("io.github.gradle-nexus:publish-plugin:_") |
| 23 | + implementation("org.jetbrains.dokka:dokka-gradle-plugin:_") |
28 | 24 | }
|
29 | 25 |
|
30 |
| -gradleEnterprise { |
31 |
| - buildScan { |
32 |
| - termsOfServiceUrl = "https://gradle.com/terms-of-service" |
33 |
| - termsOfServiceAgree = "yes" |
34 |
| - } |
| 26 | +tasks { |
| 27 | + withType<KotlinCompile> { |
| 28 | + kotlinOptions { |
| 29 | + languageVersion = "1.4" // 1.9 since gradle 8 |
| 30 | + } |
| 31 | + } |
35 | 32 | }
|
36 | 33 |
|
37 |
| -tasks { |
38 |
| - withType<KotlinCompile> { |
39 |
| - kotlinOptions { |
40 |
| - languageVersion = "1.4" |
| 34 | +gradleEnterprise { |
| 35 | + buildScan { |
| 36 | + termsOfServiceUrl = "https://gradle.com/terms-of-service" |
| 37 | + termsOfServiceAgree = "yes" |
41 | 38 | }
|
42 |
| - } |
43 | 39 | }
|
44 | 40 |
|
45 | 41 | kotlin {
|
46 |
| - sourceSets { |
47 |
| - all { |
48 |
| - languageSettings { |
49 |
| - optIn("org.jetbrains.compose.ExperimentalComposeLibrary") |
50 |
| - } |
| 42 | + sourceSets { |
| 43 | + all { |
| 44 | + languageSettings { |
| 45 | + optIn("org.jetbrains.compose.ExperimentalComposeLibrary") |
| 46 | + } |
| 47 | + } |
51 | 48 | }
|
52 |
| - } |
53 | 49 | }
|
0 commit comments