Skip to content

Commit 1efd6a0

Browse files
committed
build: reorganize and reconfigure modules to resolve dependency resolution errors
Gradle, for some reason, does not the path of modules to identify them uniquely. Instead, the 'build id' is used to do so, which consists of the maven group and artifact ID. So, even if two modules are located in separate directories, but have the name group and artifact ID, including both of them in other modules may result in dependency resolution errors.
1 parent c0c185c commit 1efd6a0

File tree

2,457 files changed

+1068
-708
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,457 files changed

+1068
-708
lines changed

.idea/compiler.xml

Lines changed: 101 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

annotations/build.gradle.kts renamed to annotation/annotations/build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import com.itsaky.androidide.build.config.BuildConfig
2+
13
/*
24
* This file is part of AndroidIDE.
35
*
@@ -21,9 +23,13 @@ plugins {
2123
id("org.jetbrains.kotlin.jvm")
2224
}
2325

26+
groupConfig {
27+
groupIdSuffix.set("annotations")
28+
}
29+
2430
dependencies {
2531
implementation(libs.androidx.annotation)
2632
implementation(libs.common.jkotlin)
27-
compileOnly(projects.shared)
28-
compileOnly(projects.subprojects.frameworkStubs)
33+
compileOnly(projects.utilities.shared)
34+
compileOnly(projects.utilities.frameworkStubs)
2935
}
File renamed without changes.

annotation-processors-ksp/build.gradle.kts renamed to annotation/processors-ksp/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ plugins {
2323
kotlin("kapt")
2424
}
2525

26-
group = "${BuildConfig.packageName}.annotations"
26+
groupConfig {
27+
groupIdSuffix.set("annotations")
28+
}
2729

2830
dependencies {
2931
kapt(libs.google.auto.service)
3032
implementation(libs.google.auto.service.annotations)
3133

3234
implementation(kotlin("stdlib"))
3335

34-
implementation(projects.annotations)
36+
implementation(projects.annotation.annotations)
3537

3638
implementation(libs.androidx.annotation)
3739
implementation(libs.common.javapoet)

0 commit comments

Comments
 (0)