Skip to content

Commit 8fd4e63

Browse files
smyrickShane Myrick
andauthored
Scope package of examples (#1014)
Move each example app into it's own separate package path. The examples should clash since they are their own individual modules, but to keep consistent with the library and help for easier refactoring, we can move each own to it's own package Co-authored-by: Shane Myrick <[email protected]>
1 parent 073afab commit 8fd4e63

File tree

115 files changed

+396
-339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+396
-339
lines changed

examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/Application.kt renamed to examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/federation/base/Application.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples
17+
package com.expediagroup.graphql.examples.federation.base
1818

19-
import com.expediagroup.graphql.examples.hooks.CustomFederationSchemaGeneratorHooks
19+
import com.expediagroup.graphql.examples.federation.base.hooks.CustomFederationSchemaGeneratorHooks
2020
import org.springframework.boot.autoconfigure.SpringBootApplication
2121
import org.springframework.boot.runApplication
2222
import org.springframework.context.annotation.Bean

examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/hooks/CustomFederationSchemaGeneratorHooks.kt renamed to examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/federation/base/hooks/CustomFederationSchemaGeneratorHooks.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples.hooks
17+
package com.expediagroup.graphql.examples.federation.base.hooks
1818

1919
import com.expediagroup.graphql.generator.federation.FederatedSchemaGeneratorHooks
2020
import com.expediagroup.graphql.generator.federation.execution.FederatedTypeResolver

examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/query/NestedQuery.kt renamed to examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/federation/base/queries/NestedQuery.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples.query
17+
package com.expediagroup.graphql.examples.federation.base.queries
1818

1919
import com.expediagroup.graphql.types.operations.Query
2020
import org.springframework.stereotype.Component

examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/query/SimpleQuery.kt renamed to examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/federation/base/queries/SimpleQuery.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples.query
17+
package com.expediagroup.graphql.examples.federation.base.queries
1818

1919
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
2020
import com.expediagroup.graphql.types.operations.Query

examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/query/WidgetQuery.kt renamed to examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/federation/base/queries/WidgetQuery.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples.query
17+
package com.expediagroup.graphql.examples.federation.base.queries
1818

19-
import com.expediagroup.graphql.examples.model.Widget
19+
import com.expediagroup.graphql.examples.federation.base.schema.Widget
2020
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
2121
import com.expediagroup.graphql.types.operations.Query
2222
import org.springframework.stereotype.Component

examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/model/Widget.kt renamed to examples/federation/base-app/src/main/kotlin/com/expediagroup/graphql/examples/federation/base/schema/Widget.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples.model
17+
package com.expediagroup.graphql.examples.federation.base.schema
1818

1919
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
2020
import com.expediagroup.graphql.generator.federation.directives.FieldSet

examples/federation/base-app/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ graphql:
22
federation:
33
enabled: true
44
packages:
5-
- "com.expediagroup"
5+
- "com.expediagroup.graphql.examples.federation.base"
66

77
server:
88
port: 8080

examples/federation/base-app/src/test/kotlin/com/expediagroup/graphql/examples/model/WidgetTest.kt renamed to examples/federation/base-app/src/test/kotlin/com/expediagroup/graphql/examples/federation/base/schema/WidgetTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples.model
17+
package com.expediagroup.graphql.examples.federation.base.schema
1818

1919
import org.junit.jupiter.api.Test
2020
import java.util.UUID

examples/federation/extend-app/src/main/kotlin/com/expediagroup/graphql/examples/Application.kt renamed to examples/federation/extend-app/src/main/kotlin/com/expediagroup/graphql/examples/federation/extend/Application.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples
17+
package com.expediagroup.graphql.examples.federation.extend
1818

1919
import org.springframework.boot.autoconfigure.SpringBootApplication
2020
import org.springframework.boot.runApplication

examples/federation/extend-app/src/main/kotlin/com/expediagroup/graphql/examples/query/SimpleQuery.kt renamed to examples/federation/extend-app/src/main/kotlin/com/expediagroup/graphql/examples/federation/extend/queries/SimpleQuery.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Expedia, Inc
2+
* Copyright 2021 Expedia, Inc
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.expediagroup.graphql.examples.query
17+
package com.expediagroup.graphql.examples.federation.extend.queries
1818

1919
import com.expediagroup.graphql.types.operations.Query
2020
import org.springframework.stereotype.Component

0 commit comments

Comments
 (0)