Skip to content

Commit

Permalink
chore: build mpl with its dependencies (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
josecorella authored May 20, 2023
1 parent 7a83234 commit 6aa1652
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
33 changes: 32 additions & 1 deletion AwsCryptographicMaterialProviders/runtimes/java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import javax.annotation.Nullable
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
}

group = "software.amazon.cryptography"
Expand Down Expand Up @@ -69,7 +70,7 @@ publishing {
publications.create<MavenPublication>("maven") {
groupId = "software.amazon.cryptography"
artifactId = "AwsCryptographicMaterialProviders"
from(components["java"])
artifact(tasks["shadowJar"])
}
repositories { mavenLocal() }
}
Expand All @@ -84,3 +85,33 @@ tasks {
classpath = sourceSets["test"].runtimeClasspath
}
}

tasks.jar {
enabled = false
}

tasks.build {
dependsOn(tasks.shadowJar)
}

tasks.shadowJar {
mergeServiceFiles()
archiveClassifier.set("")

dependencies {
include(dependency("software.amazon.cryptography:StandardLibrary:1.0-SNAPSHOT"))
include(dependency("software.amazon.cryptography:AwsCryptographyPrimitives:1.0-SNAPSHOT"))
include(dependency("software.amazon.cryptography:ComAmazonawsKms:1.0-SNAPSHOT"))
include(dependency("software.amazon.cryptography:ComAmazonawsDynamodb:1.0-SNAPSHOT"))
}

configurations {
runtimeClasspath {
dependencies {
// We want to package this version of BC since it is the one the Primitives depends on.
// These dependencies need to remain in sync with one another.
include(dependency("org.bouncycastle:bcprov-jdk18on:1.72"))
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ repositories {
dependencies {
implementation("org.dafny:DafnyRuntime:4.1.0")
implementation("software.amazon.smithy.dafny:conversion:1.0-SNAPSHOT")
implementation("software.amazon.cryptography:StandardLibrary:1.0-SNAPSHOT")
implementation("software.amazon.cryptography:AwsCryptographyPrimitives:1.0-SNAPSHOT")
implementation("software.amazon.cryptography:ComAmazonawsKms:1.0-SNAPSHOT")
implementation("software.amazon.cryptography:ComAmazonawsDynamodb:1.0-SNAPSHOT")
implementation("software.amazon.cryptography:AwsCryptographicMaterialProviders:1.0-SNAPSHOT")
implementation(platform("software.amazon.awssdk:bom:2.19.1"))
implementation("software.amazon.awssdk:dynamodb")
Expand Down

0 comments on commit 6aa1652

Please sign in to comment.