Skip to content

Commit

Permalink
gradle:
Browse files Browse the repository at this point in the history
 - Removing unused properties in libs.versions.toml
 - Enabling typesafe project accessors
 - Change allUnitTest task from GradleBuild to DefaultTask
  • Loading branch information
Jimly Asshiddiqy committed Nov 18, 2024
1 parent 93a48e7 commit 2948931
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Habitica/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ tasks.withType<Test> {
}

dependencies {
implementation(project(":common"))
implementation(project(":shared"))
implementation(projects.common)
implementation(projects.shared)

implementation(fileTree("../common/libs") { include("*.jar") })

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ plugins {
alias(libs.plugins.realm) apply false
}

tasks.register("allUnitTests", GradleBuild::class) {
tasks = listOf(":Habitica:testProdDebugUnitTest", ":wearos:testProdDebugUnitTest", ":common:testProdDebugUnitTest")
tasks.register("allUnitTests", DefaultTask::class) {
dependsOn(":Habitica:testProdDebugUnitTest", ":wearos:testProdDebugUnitTest", ":common:testProdDebugUnitTest")
}
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ tasks.withType<Test> {
}

dependencies {
implementation(project(":shared"))
implementation(projects.shared)

implementation(fileTree(mapOf("include" to listOf("*.jar"), "dir" to "libs")))

Expand Down
3 changes: 1 addition & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ turbine = "0.12.1"
wear = "1.3.0"
wearInput = "1.1.0"
wearOsTargetSdk = "33"
#"app_version_name" = ""
#"app_version_code" = 0

[libraries]
accompanist-sysmtemUi = { group = "com.google.accompanist", name = "accompanist-systemuicontroller", version.ref = "accompanist" }
accompanist-theme = { group = "com.google.accompanist", name = "accompanist-themeadapter-material3", version.ref = "accompanist" }
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@file:Suppress("UnstableApiUsage")

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

pluginManagement {
repositories {
gradlePluginPortal()
Expand Down
4 changes: 2 additions & 2 deletions wearos/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ tasks.withType<Test> {
}

dependencies {
implementation(project(":common"))
implementation(project(":shared"))
implementation(projects.common)
implementation(projects.shared)

implementation(fileTree("../common/libs") { include("*.jar") })

Expand Down

0 comments on commit 2948931

Please sign in to comment.