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

updates for jhipster 6.x compatibility #6

Open
funder7 opened this issue Jul 28, 2020 · 0 comments
Open

updates for jhipster 6.x compatibility #6

funder7 opened this issue Jul 28, 2020 · 0 comments

Comments

@funder7
Copy link

funder7 commented Jul 28, 2020

In order to use the blueprint I've manually done the fix reported in issue #1;

The generated payment.jh is throwing an error due to bidirectional relationship not allowed. I updated the file from this:

// ...
relationship ManyToOne{
	Payment{user} to User{payment}
}

to this

// ...
relationship ManyToOne{
	Payment{user} to User
}

Probably the other end of the relationship will be missing (in case I will add it manually later).

Then, package.json:

  "dependencies": {
    "chalk": "^2.4.1",
    "fs": "0.0.1-security",
    "generator-jhipster": "^6.10.1", <------
    "lodash": "^4.17.19",
    "mkdirp": "0.5.1",
    "semver": "5.3.0",
    "shelljs": "^0.8.4",
    "yeoman-generator": "^4.11.0"
  },

And finally in the index.js

            // Maven + AngularX
            if (this.buildTool === 'maven') {
                jhipsterUtils.rewriteFile({
                    file: 'pom.xml',
                    needle: 'jhipster-needle-maven-add-dependency',
                    splicable: [`<dependency>
                <groupId>com.stripe</groupId>
                <artifactId>stripe-java</artifactId>
                <version>19.35.0</version>    // <--------------------------------------------
            </dependency>`]
                }, this);

I hope that the update from v7 to v19 is not introducing any breaking change in the API. Well, we will figure it out. : )

Sorry I can't open a PR, btw is this project still followed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant