diff --git a/rules/build.gradle.kts b/rules/build.gradle.kts new file mode 100644 index 0000000..0ca922c --- /dev/null +++ b/rules/build.gradle.kts @@ -0,0 +1,3 @@ +plugins { + id("dependency.locking.root") +} \ No newline at end of file diff --git a/rules/common/build.gradle.kts b/rules/common/build.gradle.kts index a2f7821..709e510 100644 --- a/rules/common/build.gradle.kts +++ b/rules/common/build.gradle.kts @@ -1,5 +1,5 @@ plugins { - alias(libs.plugins.kotlin.jvm) + kotlin("jvm") id("convention.publish") } diff --git a/rules/detekt/build.gradle.kts b/rules/detekt/build.gradle.kts index 60a7fab..c99d8ec 100644 --- a/rules/detekt/build.gradle.kts +++ b/rules/detekt/build.gradle.kts @@ -1,9 +1,9 @@ plugins { - alias(libs.plugins.kotlin.jvm) + kotlin("jvm") id("convention.publish") } dependencies { implementation(libs.detekt.core) - implementation(project(":rules:common")) + implementation(project(":common")) } diff --git a/rules/gradle.properties b/rules/gradle.properties new file mode 100644 index 0000000..a5c5b46 --- /dev/null +++ b/rules/gradle.properties @@ -0,0 +1,17 @@ +POM_NAME=vkompose +POM_DESCRIPTION=Rules for Jetpack Compose +POM_URL=https://github.com/VKCOM/vkompose +POM_INCEPTION_YEAR=2023 +VERSION_NAME=0.6 + +POM_LICENSE_NAME=MIT +POM_LICENSE_URL=https://opensource.org/licenses/MIT +POM_LICENSE_DIST=repo + +POM_SCM_URL=https://github.com/VKCOM/vkompose +POM_SCM_CONNECTION=scm:git:git://github.com/VKCOM/vkompose +POM_SCM_DEV_CONNECTION=scm:git@github.com:VKCOM/vkompose.git + +POM_DEVELOPER_ID=0xera +POM_DEVELOPER_NAME=Askhar +POM_DEVELOPER_URL=https://github.com/0xera \ No newline at end of file diff --git a/rules/settings.gradle.kts b/rules/settings.gradle.kts new file mode 100644 index 0000000..ba92b64 --- /dev/null +++ b/rules/settings.gradle.kts @@ -0,0 +1,27 @@ +pluginManagement { + includeBuild("../build-logic") + repositories { + google() + gradlePluginPortal() + mavenCentral() + } +} + +dependencyResolutionManagement { + @Suppress("UnstableApiUsage") + repositories { + google() + mavenCentral() + } + versionCatalogs { + create("libs") { + from(files("../gradle/libs.versions.toml")) + } + } +} + +rootProject.name = "rules" + +include(":common") +include(":detekt") +//include(":ktlint") \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index c300d19..531f203 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -8,7 +8,6 @@ pluginManagement { mavenLocal() } } - dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { @@ -23,6 +22,8 @@ rootProject.name = "Compilers" //include(":sandbox:app") //include(":sandbox:module") +includeBuild("./rules") + include(":compiler-plugin") include(":compiler-plugin:composable-skippability-checker") @@ -49,9 +50,3 @@ include(":compiler-plugin:recompose:highlighter:runtime") include(":compiler-plugin:recompose:logger") include(":compiler-plugin:recompose:logger:plugin") include(":compiler-plugin:recompose:logger:runtime") - - -include(":rules") -include(":rules:common") -include(":rules:detekt") -//include(":rules:ktlint")