Skip to content

Gradle Plugin: Gradle "project" system property #13512

@Nezisi

Description

@Nezisi
=== DEBUG CONFIG MODULE LOADED ===
=== Checking 'project' config ===
'project' type: OBJECT
'project' origin: system properties
'project' file: null
'project' line: -1
ERROR: 'project' is OBJECT, should be STRING!
  structure = SimpleConfigObject({"add":{"tools":{"jar":{"to":{"new":{"jdk":"false"}}}}}})

This "project" variable is erroneously added to the config when using "playRun".

The "project" property should be set in our hocon files, but the hocon loading stopped with:

[Guice/ErrorInjectingConstructor]: ConfigException$WrongType: system properties: project has type OBJECT rather than STRING

I'm not entirely sure where the variable stems from - I'd suppose from either the Play Gradle Plugin or Gradle itself.

Most likely is Gradle, which probably means that the Play Gradle Plugin starts with the system properties set by Gradle.

Not sure how this is fixed most appropriately, but I think it should be at least documented that the gradle properties are inherited during "playRun" task.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions