Skip to content

Commit 619775b

Browse files
committed
Code cleanup.
1 parent 992ae46 commit 619775b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

build-logic/src/main/kotlin/org.sdkotlin.buildlogic.custom-resources.gradle.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ tasks {
7777
withVariantReselection()
7878

7979
attributes {
80-
applyLibraryElementsAttributes(objects,
81-
CUSTOM_RESOURCES)
80+
applyLibraryElementsAttributes(
81+
objects,
82+
libraryElementsAttributeValue = CUSTOM_RESOURCES
83+
)
8284
}
8385
}.files
8486
}
@@ -100,8 +102,10 @@ tasks {
100102
withVariantReselection()
101103

102104
attributes {
103-
applyLibraryElementsAttributes(objects,
104-
CLASSES_AND_RESOURCES)
105+
applyLibraryElementsAttributes(
106+
objects,
107+
libraryElementsAttributeValue = CLASSES_AND_RESOURCES
108+
)
105109
}
106110
}.files
107111
}

build-logic/src/main/kotlin/org/sdkotlin/buildlogic/attributes/CustomResources.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ object CustomResources {
1111
* The [LIBRARY_ELEMENTS_ATTRIBUTE] value for the "custom resources"
1212
* dependency variant.
1313
*/
14-
const val CUSTOM_RESOURCES = "custom resources"
14+
const val CUSTOM_RESOURCES = "custom-resources"
1515
}

0 commit comments

Comments
 (0)