Add convention plugins to version catalogs

pull/959/head
Melwin Magalhaes 1 year ago
parent e40fb7925d
commit 6247712064

@ -32,8 +32,8 @@ import com.google.samples.apps.nowinandroid.NiaFlavor
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.application") alias(libs.plugins.nowinandroid.android.application)
id("nowinandroid.android.application.compose") alias(libs.plugins.nowinandroid.android.application.compose)
} }
android { android {

@ -16,13 +16,13 @@
import com.google.samples.apps.nowinandroid.NiaBuildType import com.google.samples.apps.nowinandroid.NiaBuildType
plugins { plugins {
id("nowinandroid.android.application") alias(libs.plugins.nowinandroid.android.application)
id("nowinandroid.android.application.compose") alias(libs.plugins.nowinandroid.android.application.compose)
id("nowinandroid.android.application.flavors") alias(libs.plugins.nowinandroid.android.application.flavors)
id("nowinandroid.android.application.jacoco") alias(libs.plugins.nowinandroid.android.application.jacoco)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
id("jacoco") id("jacoco")
id("nowinandroid.android.application.firebase") alias(libs.plugins.nowinandroid.android.application.firebase)
id("com.google.android.gms.oss-licenses-plugin") id("com.google.android.gms.oss-licenses-plugin")
} }

@ -17,7 +17,7 @@ import com.google.samples.apps.nowinandroid.NiaBuildType
import com.google.samples.apps.nowinandroid.configureFlavors import com.google.samples.apps.nowinandroid.configureFlavors
plugins { plugins {
id("nowinandroid.android.test") alias(libs.plugins.nowinandroid.android.test)
} }
android { android {

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
id("kotlinx-serialization") id("kotlinx-serialization")
} }

@ -15,10 +15,10 @@
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
id("nowinandroid.android.room") alias(libs.plugins.nowinandroid.android.room)
} }
android { android {

@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

@ -15,9 +15,9 @@
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
alias(libs.plugins.protobuf) alias(libs.plugins.protobuf)
} }

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
} }
android { android {

@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
kotlin("kapt") kotlin("kapt")
} }

@ -15,7 +15,7 @@
*/ */
plugins { plugins {
id("nowinandroid.jvm.library") alias(libs.plugins.nowinandroid.jvm.library)
} }
dependencies { dependencies {

@ -15,9 +15,9 @@
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
id("kotlinx-serialization") id("kotlinx-serialization")
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin") id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
} }

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
} }
android { android {

@ -15,9 +15,9 @@
*/ */
plugins { plugins {
id("nowinandroid.android.feature") alias(libs.plugins.nowinandroid.android.feature)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
} }
android { android {

@ -15,9 +15,9 @@
*/ */
plugins { plugins {
id("nowinandroid.android.feature") alias(libs.plugins.nowinandroid.android.feature)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
} }
android { android {

@ -15,9 +15,9 @@
*/ */
plugins { plugins {
id("nowinandroid.android.feature") alias(libs.plugins.nowinandroid.android.feature)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
} }
android { android {
namespace = "com.google.samples.apps.nowinandroid.feature.interests" namespace = "com.google.samples.apps.nowinandroid.feature.interests"

@ -15,9 +15,9 @@
*/ */
plugins { plugins {
id("nowinandroid.android.feature") alias(libs.plugins.nowinandroid.android.feature)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
} }
android { android {

@ -15,9 +15,9 @@
*/ */
plugins { plugins {
id("nowinandroid.android.feature") alias(libs.plugins.nowinandroid.android.feature)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
} }
android { android {

@ -15,9 +15,9 @@
*/ */
plugins { plugins {
id("nowinandroid.android.feature") alias(libs.plugins.nowinandroid.android.feature)
id("nowinandroid.android.library.compose") alias(libs.plugins.nowinandroid.android.library.compose)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
} }
android { android {

@ -157,3 +157,18 @@ ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
protobuf = { id = "com.google.protobuf", version.ref = "protobufPlugin" } protobuf = { id = "com.google.protobuf", version.ref = "protobufPlugin" }
roborazzi = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" } roborazzi = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" }
secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "secrets" } secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "secrets" }
nowinandroid-android-application = { id = "nowinandroid.android.application", version = "unspecified" }
nowinandroid-android-application-compose = { id = "nowinandroid.android.application.compose", version = "unspecified" }
nowinandroid-android-application-firebase = { id = "nowinandroid.android.application.firebase", version = "unspecified" }
nowinandroid-android-application-flavors = { id = "nowinandroid.android.application.flavors", version = "unspecified" }
nowinandroid-android-application-jacoco = { id = "nowinandroid.android.application.jacoco", version = "unspecified" }
nowinandroid-android-feature = { id = "nowinandroid.android.feature", version = "unspecified" }
nowinandroid-android-hilt = { id = "nowinandroid.android.hilt", version = "unspecified" }
nowinandroid-android-library = { id = "nowinandroid.android.library", version = "unspecified" }
nowinandroid-android-library-compose = { id = "nowinandroid.android.library.compose", version = "unspecified" }
nowinandroid-android-library-jacoco = { id = "nowinandroid.android.library.jacoco", version = "unspecified" }
nowinandroid-android-lint = { id = "nowinandroid.android.lint", version = "unspecified" }
nowinandroid-android-room = { id = "nowinandroid.android.room", version = "unspecified" }
nowinandroid-android-test = { id = "nowinandroid.android.test", version = "unspecified" }
nowinandroid-jvm-library = { id = "nowinandroid.jvm.library", version = "unspecified" }

@ -19,7 +19,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
`java-library` `java-library`
kotlin("jvm") kotlin("jvm")
id("nowinandroid.android.lint") alias(libs.plugins.nowinandroid.android.lint)
} }
java { java {

@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.library.jacoco") alias(libs.plugins.nowinandroid.android.library.jacoco)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
plugins { plugins {
id("nowinandroid.android.library") alias(libs.plugins.nowinandroid.android.library)
id("nowinandroid.android.hilt") alias(libs.plugins.nowinandroid.android.hilt)
} }
android { android {

Loading…
Cancel
Save