Skip to content

Commit ee71ada

Browse files
committed
Set up plugin resolution strategy
1 parent bbd0f8f commit ee71ada

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

hll/dynamodb-mapper/tests/dynamodb-mapper-schema-generator-plugin-test/build.gradle.kts

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
val sdkVersion: String by project
7-
86
plugins {
97
id("aws.sdk.kotlin.hll.dynamodbmapper.schema.generator")
108
}

settings.gradle.kts

+7-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ pluginManagement {
1616
}
1717
}
1818
}
19-
20-
val sdkVersion: String by settings
21-
plugins {
22-
id("aws.sdk.kotlin.hll.dynamodbmapper.schema.generator") version sdkVersion
19+
resolutionStrategy {
20+
val sdkVersion: String by settings
21+
eachPlugin {
22+
if (requested.id.id == "aws.sdk.kotlin.hll.dynamodbmapper.schema.generator") {
23+
useModule("aws.sdk.kotlin:dynamodb-mapper-schema-generator-plugin:$sdkVersion")
24+
}
25+
}
2326
}
2427
}
2528

0 commit comments

Comments
 (0)