Commits

Claus Rasmussen authored 2ca3f45fea6
Simplify way the project is cleaned - Remove unused gradle tasks
No tags

build.gradle.kts

Modified
24 24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 27 * SOFTWARE.
28 28 */
29 29 // Top-level build file where you can add configuration options common to all sub-projects/modules.
30 30 import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
31 31
32 32
33 33 plugins {
34 - id("base") // Needed to add functionality to default "clean" task
35 34 alias(libs.plugins.android.application) apply false
36 35 alias(libs.plugins.android.library) apply false
37 36 alias(libs.plugins.kotlin.jvm) apply false
38 37 alias(libs.plugins.kotlin.serialization) apply false
39 38 alias(libs.plugins.android.junit5) apply false
40 39 alias(libs.plugins.hilt) apply false
41 40 alias(libs.plugins.ksp) apply false
42 41
43 42 alias(libs.plugins.gradle.versions)
44 43 alias(libs.plugins.gradle.versions.update)
90 89 set("versionName", "1.1.0")
91 90 set("versionCode", getCommitCount())
92 91 }
93 92
94 93 val libs = extensions.getByType<VersionCatalogsExtension>().named("libs")
95 94 dependencies {
96 95 classpath(libs.findLibrary("android-navigation-gradlePlugin").get())
97 96 }
98 97 }
99 98
100 -tasks {
101 - clean {
102 - dependsOn(
103 - ":cleanQaReports",
104 - ":cleanBuildLogic",
105 - )
106 - }
107 -
108 - create<Delete>("cleanQaReports") {
109 - delete("${rootProject.rootDir}/qa-reports")
110 - }
111 -
112 - create<Delete>("cleanBuildLogic") {
113 - delete("${rootProject.rootDir}/build-logic/convention/build")
114 - }
115 -
116 - create("runAllUnitTests") {
117 - dependsOn(
118 - "app:testProjectEnvDebugUnitTest",
119 - "api:testProjectEnvDebugUnitTest",
120 - "repo:testProjectEnvDebugUnitTest",
121 - "shared:testProjectEnvDebugUnitTest",
122 - )
123 - }
99 +// Clean qa-reports folder when cleaning project
100 +tasks.create("clean").apply {
101 + delete("${rootProject.rootDir}/qa-reports")
124 102 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut