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

Deprecation warning when deploying to CloudFoundry #11711

Closed
mraible opened this issue May 5, 2020 · 1 comment · Fixed by #11942
Closed

Deprecation warning when deploying to CloudFoundry #11711

mraible opened this issue May 5, 2020 · 1 comment · Fixed by #11942
Labels
area: enhancement 🔧 $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ theme: cloud $100 https://www.jhipster.tech/bug-bounties/
Milestone

Comments

@mraible
Copy link
Contributor

mraible commented May 5, 2020

Overview of the issue

When deploying to CloudFoundry, there's a deprecation warning:

Deprecation warning: Specifying app manifest attributes at the top level is deprecated. Found: buildpack, instances, path, services.
Please see http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#deprecated for alternatives and other app manifest deprecations. This feature will be removed in the future.
Motivation for or Use Case

Deploying to Cloud Foundry should work without errors.

Reproduce the error

Create an app with PostgreSQL and deploy to Cloud Foundry using heroku cloudfoundry.

My .yo-rc.json:

{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.mycompany.myapp",
      "nativeLanguage": "en"
    },
    "jhipsterVersion": "6.8.0",
    "applicationType": "monolith",
    "baseName": "gradlepost",
    "packageName": "com.mycompany.myapp",
    "packageFolder": "com/mycompany/myapp",
    "serverPort": "8080",
    "authenticationType": "oauth2",
    "cacheProvider": "ehcache",
    "enableHibernateCache": true,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "postgresql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "gradle",
    "enableSwaggerCodegen": false,
    "embeddableLaunchScript": false,
    "useSass": true,
    "clientPackageManager": "npm",
    "clientFramework": "angularX",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "creationTimestamp": 1588636387176,
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "otherModules": [],
    "enableTranslation": true,
    "nativeLanguage": "en",
    "languages": ["en"],
    "blueprints": []
  }
}

The generated manifest.yml:

---
path: .
instances: 1
buildpack: https://github.com/cloudfoundry/java-buildpack
services:
  - gradlepost
applications:
  - name: gradlepost
    env:
      SPRING_PROFILES_ACTIVE: prod, cloudfoundry
@atomfrede
Copy link
Member

Is it somehow related to #11685 ? I guess cloudfoundry is not maintained well right now.

@mraible mraible added $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $100 https://www.jhipster.tech/bug-bounties/ labels Jun 1, 2020
@pascalgrimaud pascalgrimaud added this to the 6.10.0 milestone Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: enhancement 🔧 $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ theme: cloud $100 https://www.jhipster.tech/bug-bounties/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants