-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds an alternative generation mode that only generates "data shapes".
- Loading branch information
1 parent
1a83ad2
commit 56c766e
Showing
23 changed files
with
1,746 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
codegen/buildSrc/src/main/kotlin/smithy-python.codegen-plugin-conventions.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import org.gradle.api.Project | ||
|
||
plugins { | ||
id("smithy-python.module-conventions") | ||
id("smithy-python.integ-test-conventions") | ||
} | ||
|
||
// Workaround per: https://github.com/gradle/gradle/issues/15383 | ||
val Project.libs get() = the<org.gradle.accessors.dm.LibrariesForLibs>() | ||
|
||
group = "software.amazon.smithy.python.codegen.plugins" | ||
|
||
dependencies { | ||
implementation(libs.smithy.codegen) | ||
implementation(project(":core")) | ||
|
||
// Avoid circular dependency in codegen core | ||
if (project.name != "core") { | ||
api(project(":core")) | ||
} | ||
} | ||
|
||
val generatedSrcDir = layout.buildDirectory.dir("generated-src").get() | ||
|
||
// Add generated sources to integration test sources | ||
sourceSets { | ||
named("it") { | ||
java { | ||
srcDir(generatedSrcDir) | ||
} | ||
} | ||
} | ||
|
||
// Ensure integ tests are executed as part of test suite | ||
tasks["test"].finalizedBy("integ") |
Oops, something went wrong.