
com.freeletics.gradle.monorepo.plugin.DomainKotlinPlugin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugins Show documentation
Show all versions of plugins Show documentation
A set of reusable Gradle plugins
package com.freeletics.gradle.monorepo.plugin
import com.freeletics.gradle.monorepo.setup.applyPlatformConstraints
import com.freeletics.gradle.monorepo.setup.disableKotlinLibraryTasks
import com.freeletics.gradle.monorepo.tasks.CheckDependencyRulesTask.Companion.registerCheckDependencyRulesTasks
import com.freeletics.gradle.monorepo.util.ProjectType
import com.freeletics.gradle.plugin.FreeleticsJvmPlugin
import com.freeletics.gradle.util.freeleticsJvmExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
public abstract class DomainKotlinPlugin : Plugin {
override fun apply(target: Project) {
target.plugins.apply(FreeleticsJvmPlugin::class.java)
target.freeleticsJvmExtension.useAndroidLint()
target.registerCheckDependencyRulesTasks(
allowedProjectTypes = listOf(
ProjectType.DOMAIN_API,
ProjectType.DOMAIN_IMPLEMENTATION,
ProjectType.DOMAIN_TESTING,
),
allowedDependencyProjectTypes = listOfNotNull(
ProjectType.CORE_API,
ProjectType.CORE_TESTING,
ProjectType.DOMAIN_API,
ProjectType.DOMAIN_TESTING,
),
)
target.applyPlatformConstraints()
target.disableKotlinLibraryTasks()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy