Skip to content

Commit

Permalink
build: try to remove redundant guava dependency
Browse files Browse the repository at this point in the history
Migrate buildSrc to build-logic/convention
  • Loading branch information
WhiredPlanck committed Jan 16, 2024
1 parent 6d08303 commit 50e3f2b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ plugins {
kotlin("plugin.serialization") version embeddedKotlinVersion
}

group = "com.osfans.trime.build_logic"

dependencies {
compileOnly(libs.android.gradlePlugin)
compileOnly(libs.kotlin.gradlePlugin)
implementation(libs.guava)
implementation(libs.kotlinx.serialization.json)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.google.common.hash.Hashing
import com.google.common.io.ByteSource
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import org.gradle.api.DefaultTask
Expand All @@ -18,6 +16,8 @@ import org.gradle.kotlin.dsl.task
import org.gradle.work.ChangeType
import org.gradle.work.Incremental
import org.gradle.work.InputChanges
import org.jetbrains.kotlin.com.google.common.hash.Hashing
import org.jetbrains.kotlin.com.google.common.io.ByteSource
import java.io.File
import java.nio.charset.Charset
import kotlin.collections.set
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions build-logic/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ dependencyResolutionManagement {
}
}
}

rootProject.name = "build-logic"
include(":convention")
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
androidGradlePlugin = "8.2.0"
kotlin = "1.9.20"
ksp = "1.9.20-1.0.14"
lifecycle = "2.6.2"
navigation = "2.7.5"
room = "2.6.1"
splitties = "3.0.0"
Expand All @@ -27,7 +26,6 @@ androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
androidx-viewpager2 = { module = "androidx.viewpager2:viewpager2", version = "1.1.0-beta02" }
flexbox = { module = "com.google.android.flexbox:flexbox", version = "3.0.0" }
guava = { module = "com.google.guava:guava", version = "33.0.0-jre"}
kaml = { module = "com.charleskorn.kaml:kaml", version = "0.56.0" }
timber = { module = "com.jakewharton.timber:timber", version = "5.0.1" }
utilcode = { module = "com.blankj:utilcodex", version = "1.31.1" }
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pluginManagement {
includeBuild("build-logic")
repositories {
gradlePluginPortal()
google()
Expand All @@ -15,6 +16,6 @@ dependencyResolutionManagement {
}
}

rootProject.name = "trime"
include(":app")
include(":codegen")
rootProject.name = "trime"

0 comments on commit 50e3f2b

Please sign in to comment.