Skip to content

Commit 6bb9535

Browse files
committed
1 parent b693d5e commit 6bb9535

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ gradle.beforeProject {
3939
version = "1.0.0-SNAPSHOT"
4040
}
4141

42+
include("subprojects:constant-dependencies:constant-consumer")
43+
include("subprojects:constant-dependencies:constant-producer")
4244
include("subprojects:di-with-koin")
4345
include("subprojects:effective-kotlin")
4446
include("subprojects:kotlin-dl")
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
plugins {
2+
id("org.sdkotlin.buildlogic.kotlin-project")
3+
}
4+
5+
dependencies {
6+
7+
implementation(projects.subprojects.constantDependencies.constantProducer)
8+
}
9+
10+
dependencyAnalysis {
11+
issues {
12+
onUnusedDependencies {
13+
exclude(
14+
// Used but reported as unused:
15+
// https://github.com/autonomousapps/dependency-analysis-gradle-plugin/issues/1385.
16+
":subprojects:constant-dependencies:constant-producer",
17+
)
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package org.sdkotlin.constants.consumer
2+
3+
import org.sdkotlin.constants.producer.CompanionConstants.Companion.TESTING
4+
5+
fun main() {
6+
println(TESTING)
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins {
2+
id("org.sdkotlin.buildlogic.kotlin-project")
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.sdkotlin.constants.producer
2+
3+
class CompanionConstants {
4+
5+
companion object {
6+
7+
const val TESTING: String = "testing"
8+
}
9+
}

0 commit comments

Comments
 (0)