import org.sonarqube.gradle.SonarResolverTask /* * Copyright (c) 2025 Element Creations Ltd. * Copyright 2022-2025 New Vector Ltd. * * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial. * Please see LICENSE files in the repository root for full details. */ plugins { alias(libs.plugins.kotlin.jvm) } dependencies { implementation(projects.annotations) implementation(libs.metro.runtime) implementation(libs.kotlin.compiler) implementation(libs.kotlinpoet) implementation(libs.ksp.plugin) implementation(libs.kotlinpoet.ksp) } // Ensure that the processResources task is executed before the SonarResolverTask to avoid issues with missing resources during SonarQube analysis. // This *should not be necesssary* but is a workaround for a known issue with the SonarQube Gradle plugin. tasks.withType().configureEach { dependsOn("processResources") }