Skip to content

Commit

Permalink
separate rules modules to other project
Browse files Browse the repository at this point in the history
  • Loading branch information
0xera committed Aug 14, 2024
1 parent b28da19 commit 7f49ea4
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 10 deletions.
3 changes: 3 additions & 0 deletions rules/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id("dependency.locking.root")
}
2 changes: 1 addition & 1 deletion rules/common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
alias(libs.plugins.kotlin.jvm)
kotlin("jvm")
id("convention.publish")
}

Expand Down
4 changes: 2 additions & 2 deletions rules/detekt/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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"))
}
17 changes: 17 additions & 0 deletions rules/gradle.properties
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions rules/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
9 changes: 2 additions & 7 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pluginManagement {
mavenLocal()
}
}

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
Expand All @@ -23,6 +22,8 @@ rootProject.name = "Compilers"
//include(":sandbox:app")
//include(":sandbox:module")

includeBuild("./rules")

include(":compiler-plugin")

include(":compiler-plugin:composable-skippability-checker")
Expand All @@ -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")

0 comments on commit 7f49ea4

Please sign in to comment.