Skip to content

Commit

Permalink
Remove usage of Gradle plugin for now to fix protocol tests
Browse files Browse the repository at this point in the history
There's an unknown issue with the Gradle plugin that makes it impossible
to load the smithy-protocol-test-traits when trying to build
smithy-aws-protocol-tests. This commit moves back to manually assembling
JARs and removes the Gradle plugin until we figure out how and why it's
broken.
  • Loading branch information
mtdowling authored and kstich committed Jan 13, 2020
1 parent 6897109 commit 6b00bcb
Show file tree
Hide file tree
Showing 39 changed files with 53 additions and 4 deletions.
4 changes: 0 additions & 4 deletions smithy-aws-protocol-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ description = "Defines protocol tests for AWS HTTP protocols."
extra["displayName"] = "Smithy :: AWS :: Protocol Tests"
extra["moduleName"] = "software.amazon.smithy.aws.protocoltests"

plugins {
id("software.amazon.smithy").version("0.4.2")
}

dependencies {
api(project(":smithy-protocol-test-traits"))
api(project(":smithy-aws-traits"))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
json-rpc-1-1/main.json
query/empty-input-output.smithy
query/input.smithy
query/input-lists.smithy
query/input-maps.smithy
query/main.smithy
query/xml-errors.smithy
query/xml-lists.smithy
query/xml-maps.smithy
query/xml-structs.smithy
rest-json/empty-input-output.smithy
rest-json/endpoint-host-trait.smithy
rest-json/errors.smithy
rest-json/http-headers.smithy
rest-json/http-labels.smithy
rest-json/http-payload.smithy
rest-json/http-prefix-headers.smithy
rest-json/http-query.smithy
rest-json/json-lists.smithy
rest-json/json-maps.smithy
rest-json/json-structs.smithy
rest-json/main.smithy
rest-xml/document-lists.smithy
rest-xml/document-maps.smithy
rest-xml/document-structs.smithy
rest-xml/document-xml-attributes.smithy
rest-xml/empty-input-output.smithy
rest-xml/endpoint-host-trait.smithy
rest-xml/errors.smithy
rest-xml/http-headers.smithy
rest-xml/http-labels.smithy
rest-xml/http-payload.smithy
rest-xml/http-prefix-headers.smithy
rest-xml/http-query.smithy
rest-xml/main.smithy
shared-types.smithy
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package software.amazon.smithy.aws.protocoltests;

import org.junit.jupiter.api.Test;
import software.amazon.smithy.model.Model;

/**
* TODO: fix gradle plugin and remove this code.
*/
public class ModelTest {
@Test
public void loadsModel() {
Model.assembler()
.discoverModels()
.assemble()
.unwrap();
}
}

0 comments on commit 6b00bcb

Please sign in to comment.