File tree 17 files changed +53
-17
lines changed
server/aws-server-restjson
mcp-bundle-api/src/main/resources/META-INF/smithy
17 files changed +53
-17
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ extra["moduleName"] = "software.amazon.smithy.java.aws.client.awsjson"
10
10
11
11
dependencies {
12
12
api(project(" :client:client-http" ))
13
- api(project(" :codecs:json-codec" ))
13
+ api(project(" :codecs:json-codec" , configuration = " shadow " ))
14
14
api(project(" :aws:aws-event-streams" ))
15
15
api(libs.smithy.aws.traits)
16
16
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ extra["moduleName"] = "software.amazon.smithy.java.aws.client.restjson"
11
11
dependencies {
12
12
api(project(" :client:client-http-binding" ))
13
13
api(project(" :client:client-http" ))
14
- api(project(" :codecs:json-codec" ))
14
+ api(project(" :codecs:json-codec" , configuration = " shadow " ))
15
15
api(project(" :aws:aws-event-streams" ))
16
16
api(libs.smithy.aws.traits)
17
17
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ extra["displayName"] = "Smithy :: Java :: AWS :: SDKv2 :: Shapes"
8
8
extra[" moduleName" ] = " software.amazon.smithy.java.aws.sdkv2.shapes"
9
9
10
10
dependencies {
11
- implementation(project(" :codecs:json-codec" ))
11
+ implementation(project(" :codecs:json-codec" , configuration = " shadow " ))
12
12
implementation(project(" :core" ))
13
13
implementation(project(" :aws:client:aws-client-restjson" ))
14
14
implementation(project(" :aws:client:aws-client-awsjson" ))
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ dependencies {
15
15
implementation(project(" :server:server-core" ))
16
16
implementation(project(" :context" ))
17
17
implementation(project(" :core" ))
18
- implementation(project(" :codecs:json-codec" ))
18
+ implementation(project(" :codecs:json-codec" , configuration = " shadow " ))
19
19
implementation(project(" :http:http-binding" ))
20
20
21
21
itImplementation(project(" :server:server-api" ))
Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ plugins {
7
7
signing
8
8
}
9
9
10
+ interface PublishingConfigExtension {
11
+ var customComponent: SoftwareComponent ?
12
+ }
13
+
14
+ val extension = project.extensions.create<PublishingConfigExtension >(" configurePublishing" ).apply {
15
+ customComponent = null
16
+ }
17
+
10
18
/*
11
19
* Staging repository
12
20
* ====================================================
@@ -24,8 +32,7 @@ publishing {
24
32
publications {
25
33
afterEvaluate {
26
34
create<MavenPublication >(" mavenJava" ) {
27
- from(components[" java" ])
28
-
35
+ from(extension.customComponent ? : components[" java" ])
29
36
val displayName: String by extra
30
37
pom {
31
38
name.set(displayName)
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ dependencies {
18
18
implementation(project(" :client:client-rpcv2-cbor" ))
19
19
20
20
implementation(project(" :client:dynamic-client" ))
21
- implementation(project(" :codecs:json-codec" ))
21
+ implementation(project(" :codecs:json-codec" , configuration = " shadow " ))
22
22
implementation(project(" :client:client-http" ))
23
23
implementation(project(" :aws:client:aws-client-core" ))
24
24
implementation(project(" :aws:aws-sigv4" ))
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ dependencies {
13
13
api(project(" :http:http-binding" ))
14
14
implementation(project(" :logging" ))
15
15
16
- testImplementation(project(" :codecs:json-codec" ))
16
+ testImplementation(project(" :codecs:json-codec" , configuration = " shadow " ))
17
17
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ dependencies {
12
12
api(project(" :http:http-api" ))
13
13
implementation(project(" :logging" ))
14
14
15
- testImplementation(project(" :codecs:json-codec" ))
15
+ testImplementation(project(" :codecs:json-codec" , configuration = " shadow " ))
16
16
testImplementation(project(" :aws:client:aws-client-awsjson" ))
17
17
testImplementation(project(" :client:dynamic-client" ))
18
18
}
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ extra["moduleName"] = "software.amazon.smithy.java.cbor"
11
11
dependencies {
12
12
api(project(" :core" ))
13
13
testFixturesImplementation(libs.assertj.core)
14
- testImplementation(project(" :codecs:json-codec" ))
14
+ testImplementation(project(" :codecs:json-codec" , configuration = " shadow " ))
15
15
}
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id(" smithy-java.module-conventions" )
3
+ alias(libs.plugins.shadow)
3
4
}
4
5
5
6
description = " This module provides json functionality"
@@ -11,3 +12,31 @@ dependencies {
11
12
api(project(" :core" ))
12
13
implementation(libs.jackson.core)
13
14
}
15
+
16
+ tasks {
17
+ shadowJar {
18
+ archiveClassifier.set(" " )
19
+ mergeServiceFiles()
20
+
21
+ dependencies {
22
+ include(
23
+ dependency(
24
+ libs.jackson.core
25
+ .get()
26
+ .toString(),
27
+ ),
28
+ )
29
+ relocate(" com.fasterxml.jackson.core" , " software.amazon.smithy.java.internal.shaded.com.fasterxml.jackson.core" )
30
+ }
31
+ }
32
+ jar {
33
+ finalizedBy(shadowJar)
34
+ }
35
+ }
36
+
37
+ (components[" shadow" ] as AdhocComponentWithVariants ).addVariantsFromConfiguration(configurations.apiElements.get()) {
38
+ }
39
+
40
+ configurePublishing {
41
+ customComponent = components[" shadow" ] as SoftwareComponent
42
+ }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ extra["moduleName"] = "software.amazon.smithy.java.codegen.core"
10
10
11
11
dependencies {
12
12
api(libs.smithy.codegen)
13
- itImplementation(project(" :codecs:json-codec" ))
13
+ itImplementation(project(" :codecs:json-codec" , configuration = " shadow " ))
14
14
}
15
15
16
16
addGenerateSrcsTask(" software.amazon.smithy.java.codegen.utils.TestJavaCodegenRunner" )
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ extra["moduleName"] = "software.amazon.smithy.java.dynamicschemas"
10
10
dependencies {
11
11
api(project(" :core" ))
12
12
13
- testImplementation(project(" :codecs:json-codec" ))
13
+ testImplementation(project(" :codecs:json-codec" , configuration = " shadow " ))
14
14
}
Original file line number Diff line number Diff line change @@ -31,4 +31,4 @@ structure CodeRepoBundle with [CommonBundleConfig] {
31
31
/// The URL of this MCP server's code repository
32
32
@required
33
33
codeRepoUrl : String
34
- }
34
+ }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ dependencies {
13
13
api(libs.smithy.model)
14
14
api(libs.picocli)
15
15
api(project(" :mcp:mcp-bundle-api" ))
16
- implementation(project(" :codecs:json-codec" ))
16
+ implementation(project(" :codecs:json-codec" , configuration = " shadow " ))
17
17
implementation(project(" :logging" ))
18
18
smithyBuild(project(" :codegen:plugins:types-codegen" ))
19
19
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ dependencies {
17
17
implementation(project(" :logging" ))
18
18
implementation(project(" :mcp:mcp-server" ))
19
19
implementation(project(" :server:server-proxy" ))
20
- implementation(project(" :codecs:json-codec" ))
20
+ implementation(project(" :codecs:json-codec" , configuration = " shadow " ))
21
21
implementation(libs.picocli)
22
22
api(project(" :mcp:mcp-cli-api" ))
23
23
implementation(libs.smithy.utils)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ dependencies {
13
13
implementation(project(" :server:server-core" ))
14
14
implementation(project(" :logging" ))
15
15
implementation(project(" :context" ))
16
- implementation(project(" :codecs:json-codec" ))
16
+ implementation(project(" :codecs:json-codec" , configuration = " shadow " ))
17
17
implementation(project(" :mcp:mcp-schemas" ))
18
18
implementation(project(" :mcp:mcp-bundle-api" ))
19
19
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ dependencies {
20
20
implementation(project(" :server:server-api" ))
21
21
implementation(project(" :server:server-core" ))
22
22
implementation(project(" :client:client-http" ))
23
- implementation(project(" :codecs:json-codec" ))
23
+ implementation(project(" :codecs:json-codec" , configuration = " shadow " ))
24
24
implementation(libs.assertj.core)
25
25
26
26
api(platform(libs.junit.bom))
You can’t perform that action at this time.
0 commit comments