Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with google app engine plugin #2035

Open
2 tasks
ronjunevaldoz opened this issue Sep 1, 2024 · 0 comments
Open
2 tasks

Build error with google app engine plugin #2035

ronjunevaldoz opened this issue Sep 1, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@ronjunevaldoz
Copy link

ronjunevaldoz commented Sep 1, 2024

Library Version
version: 8.0.0

Describe the bug
Build error

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Some problems were found with the configuration of task ':server:graphqlGenerateClient' (type 'GraphQLGenerateClientTask').
  - In plugin 'com.expediagroup.graphql' type 'com.expediagroup.graphql.plugin.gradle.tasks.GraphQLGenerateClientTask' property 'packageName' doesn't have a configured value.
    
    Reason: This property isn't marked as optional and no value has been configured.
    
    Possible solutions:
      1. Assign a value to 'packageName'.
      2. Mark property 'packageName' as optional.
    
    For more information, please refer to https://docs.gradle.org/8.7/userguide/validation_problems.html#value_not_set in the Gradle documentation.
  - In plugin 'com.expediagroup.graphql' type 'com.expediagroup.graphql.plugin.gradle.tasks.GraphQLGenerateClientTask' property 'schemaFile' doesn't have a configured value.
    
    Reason: This property isn't marked as optional and no value has been configured.
    
    Possible solutions:
      1. Assign a value to 'schemaFile'.
      2. Mark property 'schemaFile' as optional.
    
    For more information, please refer to https://docs.gradle.org/8.7/userguide/validation_problems.html#value_not_set in the Gradle documentation.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Some problems were found with the configuration of task ':server:graphqlGenerateTestClient' (type 'GraphQLGenerateTestClientTask').
  - In plugin 'com.expediagroup.graphql' type 'com.expediagroup.graphql.plugin.gradle.tasks.GraphQLGenerateTestClientTask' property 'packageName' doesn't have a configured value.
    
    Reason: This property isn't marked as optional and no value has been configured.
    
    Possible solutions:
      1. Assign a value to 'packageName'.
      2. Mark property 'packageName' as optional.
    
    For more information, please refer to https://docs.gradle.org/8.7/userguide/validation_problems.html#value_not_set in the Gradle documentation.
  - In plugin 'com.expediagroup.graphql' type 'com.expediagroup.graphql.plugin.gradle.tasks.GraphQLGenerateTestClientTask' property 'queryFileDirectory' specifies directory '/Users/ronjunevaldoz/StudioProjects/golearnph/server/src/test/resources' which doesn't exist.
    
    Reason: An input file was expected to be present but it doesn't exist.
    
    Possible solutions:
      1. Make sure the directory exists before the task is called.
      2. Make sure that the task which produces the directory is declared as an input.
    
    For more information, please refer to https://docs.gradle.org/8.7/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.
  - In plugin 'com.expediagroup.graphql' type 'com.expediagroup.graphql.plugin.gradle.tasks.GraphQLGenerateTestClientTask' property 'schemaFile' doesn't have a configured value.
    
    Reason: This property isn't marked as optional and no value has been configured.
    
    Possible solutions:
      1. Assign a value to 'schemaFile'.
      2. Mark property 'schemaFile' as optional.
    
    For more information, please refer to https://docs.gradle.org/8.7/userguide/validation_problems.html#value_not_set in the Gradle documentation.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

To Reproduce
Steps to reproduce the behavior. Please provide:

  • Setup google app engine plugin
import com.google.cloud.tools.gradle.appengine.appyaml.AppEngineAppYamlExtension

plugins {
    alias(libs.plugins.kotlinJvm)
    alias(libs.plugins.kotlinSerialization)
    alias(libs.plugins.ktor)
    alias(libs.plugins.graphql)
    alias(libs.plugins.appengine)
    alias(libs.plugins.realm)
    alias(libs.plugins.shadow)
    application
}

configure<AppEngineAppYamlExtension> {
    stage {
        setArtifact("build/libs/${project.name}-all.jar")
    }
    deploy {
        version = "1.0.0"
        projectId = "PROJECT" 
    }
}

Expected behavior

  • Able to build successfully
  • Move separate server & client graphql library & plugin?

Temporary solution

  • Disable these tasks
    • graphqlGenerateClient
    • graphqlGenerateTestClient
// disable graphql tasks due to build error while installing google app engine plugin.
val tasksToDisable = listOf("graphqlGenerateClient", "graphqlGenerateTestClient")
tasksToDisable.forEach { taskName ->
    tasks.named(taskName) {
        enabled = false
    }
}
@ronjunevaldoz ronjunevaldoz added the type: bug Something isn't working label Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Development

No branches or pull requests

1 participant