Skip to content

Commit

Permalink
Bump conversion library to 0.1.1, miscellaneous publishing fixes (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws authored Oct 8, 2024
1 parent 1296bf5 commit d36bcb8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion codegen/smithy-dafny-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {

implementation("org.commonmark:commonmark:0.22.0")

implementation("com.google.guava:guava:30.1-jre")
implementation("com.google.guava:guava:32.0.0-jre")
implementation("org.slf4j:slf4j-api:1.7.32")
implementation("org.slf4j:slf4j-simple:1.7.32")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import software.amazon.polymorph.utils.ModelUtils;

/**
* @param method MethodSpec.Builder that SHOULD have Parameters, Returns, & Modifiers set correctly ( note that
* @param method MethodSpec.Builder that SHOULD have Parameters, Returns, and Modifiers set correctly ( note that
* void or parameterless methods would not have any Returns or Parameters).
* @param resolvedInput A ResolvedShapeId representing the input
* @param resolvedOutput A ResolvedShapeId representing the output
Expand Down
21 changes: 20 additions & 1 deletion smithy-dafny-conversion/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
description = "Convert Native Java Types to Dafny Runtime Types and vice versa"
group = "software.amazon.smithy.dafny"
var artifactId = "conversion"
version = "0.1"
version = "0.1.1"

var moduleName = "%s.%s".format(group, artifactId)
var displayName = "Smithy :: Dafny :: Conversion"
Expand Down Expand Up @@ -119,3 +119,22 @@ fun maybeCodeArtifact(buildGradle: Build_gradle, repositoryHandler: RepositoryHa
}
}
}

signing {
// Signing is required if building a release version and if we're going to publish it.
// Otherwise, signing will only occur if signatory credentials are configured.
setRequired({
gradle.getTaskGraph().hasTask("publish")
})

sign(publishing.publications["mavenJava"])
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://aws.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://aws.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}

0 comments on commit d36bcb8

Please sign in to comment.