Skip to content

Commit 43e0800

Browse files
committed
fix: fix build.gradle.kts was not configured right
1 parent ec1cfac commit 43e0800

3 files changed

Lines changed: 28 additions & 31 deletions

File tree

build.gradle.kts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
buildscript {
2+
repositories {
3+
google {
4+
content {
5+
includeGroupByRegex("com\\.android.*")
6+
includeGroupByRegex("com\\.google.*")
7+
includeGroupByRegex("androidx.*")
8+
}
9+
}
10+
mavenCentral()
11+
}
12+
dependencies {
13+
classpath(libs.google.oss.licenses.plugin) {
14+
exclude(group = "com.google.protobuf")
15+
}
16+
}
17+
}
18+
19+
plugins {
20+
alias(libs.plugins.android.application).apply(false)
21+
alias(libs.plugins.android.library).apply(false)
22+
alias(libs.plugins.kotlin.android).apply(false)
23+
alias(libs.plugins.ksp).apply(false)
24+
}

build.kts

Lines changed: 0 additions & 30 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ mlkit-translate = "17.0.1"
6767
# Testing
6868
junit = "4.13.2"
6969
espresso = "3.4.0"
70+
googleOssLicensesPlugin = "0.10.6"
71+
7072

7173
[libraries]
7274
# Compose BOM
@@ -122,6 +124,7 @@ litert-support = { module = "com.google.ai.edge.litert:litert-support", version.
122124
room-runtime = { group = "androidx.room", name = "room-runtime", version.ref = "room" }
123125
room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
124126
room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" }
127+
google-oss-licenses-plugin = { group = "com.google.android.gms", name = "oss-licenses-plugin", version.ref = "googleOssLicensesPlugin" }
125128

126129
# Logging
127130
timber = { group = "com.jakewharton.timber", name = "timber", version.ref = "timber" }
@@ -152,4 +155,4 @@ android-application = { id = "com.android.application", version.ref = "android-g
152155
android-library = { id = "com.android.library", version.ref = "android-gradle-plugin" }
153156
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
154157
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin-serialization" }
155-
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
158+
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }

0 commit comments

Comments
 (0)