Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #2593
Closed
Open
Issue created Apr 04, 2019 by Administrator@rootContributor

[BUG] okhttp-gson generation on windows creates a uncompilable build.gradle

Created by: rmadisonhaynie

Description

okhttp-gson generation on windows creates an uncompilable build.gradle

This issue is related to the 'sourceFolder' param and the fact that by default it is build using File.separator, so when substituted in build.gradle.mustache when building on Windows into a string the Windows file seperator '' is interpreted as an escape character and the gradle file will not compile.
This file https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/build.gradle.mustache

Here: `{{#sourceFolder}} sourceSets { main.java.srcDirs = ['{{sourceFolder}}'] }

{{/sourceFolder}}`

openapi-generator version

4.0.0-beta2

Steps to reproduce

You can reproduce by running grade generateClient on Windows here https://github.com/criteo/criteo-marketing-sdk-generator

The generated build.gradle file in the java project won't compile because the source folder is 'src\main\java'

Assignee
Assign to
Time tracking