-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (37 loc) · 1.86 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
plugins {
`kotlin-dsl`
// Gradle 8.10's embedded Kotlin version is 1.9.24.
//kotlin("jvm") version "2.0.10"
}
repositories {
mavenLocal()
gradlePluginPortal()
maven {
url = uri("https://maven.pkg.github.com/huanshankeji/gradle-common")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
dependencies {
/*
// see https://kotlinlang.org/docs/whatsnew18.html#resolution-of-kotlin-gradle-plugins-transitive-dependencies
// This workaround somehow doesn't work. Maybe wait for https://youtrack.jetbrains.com/issue/KT-54691/Kotlin-Gradle-Plugin-libraries-alignment-platform to be fixed.
constraints {
implementation("org.jetbrains.kotlin:kotlin-sam-with-receiver:1.8.0")
}
*/
// for `KotlinCompilationTask` and the version is compatible with Compose 1.6.11
implementation(kotlin("gradle-plugin", "2.1.0"))
implementation("org.gradle.kotlin:gradle-kotlin-dsl-plugins:5.1.1") // This version has to be used for Gradle 8.11.1.
implementation("com.gradle.publish:plugin-publish-plugin:1.3.0")
// This is a bootstrapping dependency (cross-version self-dependency). Try not to update its version unless necessary.
implementation("com.huanshankeji.team:gradle-plugins:0.3.0") { exclude("org.jetbrains.kotlin") }
// This approach complicates the project is temporarily given up and commented out. Maybe readopt this when `common-gradle-dependencies` is moved to a separate project.
/*
// This is also a bootstrapping dependency.
implementation("com.huanshankeji:common-gradle-dependencies:0.7.1-20240314-boostrap") { exclude("org.jetbrains.kotlin") }
*/
implementation("org.jetbrains.dokka:dokka-gradle-plugin:2.0.0-Beta")
}