pivotal-cf / java-cfenv

Apache License 2.0
91 stars 56 forks source link

Add Cloud profile #227

Closed anthonydahanne closed 9 months ago

anthonydahanne commented 9 months ago

Ready to go! I tested it with spring-music no cfenv and JBP

   2023-09-13T17:01:18.02-0400 [APP/PROC/WEB/0] OUT :: Spring Boot ::                (v3.1.3)
   2023-09-13T17:01:18.17-0400 [APP/PROC/WEB/0] OUT 2023-09-13T21:01:18.170Z  INFO 7 --- [           main] o.c.samples.music.Application            : Starting Application v1.0 using Java 17.0.8 with PID 7 (/home/vcap/app/BOOT-INF/classes started by vcap in /home/vcap/app)
   2023-09-13T17:01:18.17-0400 [APP/PROC/WEB/0] OUT 2023-09-13T21:01:18.179Z  INFO 7 --- [           main] o.c.samples.music.Application            : The following 2 profiles are active: "cloud", "http2"
   2023-09-13T17:01:18.33-0400 [APP/PROC/WEB/0] OUT 2023-09-13T21:01:18.335Z  INFO 7 --- [           main] i.p.c.p.CloudProfileApplicationListener  : 'cloud' profile activated
   2023-09-13T17:01:18.33-0400 [APP/PROC/WEB/0] OUT 2023-09-13T21:01:18.337Z  INFO 7 --- [           main] s.b.CfDataSourceEnvironmentPostProcessor : Setting spring.datasource properties from bound service [mysql-service]
massiinthesea commented 9 months ago

Hello,

With this new version, the "cloud" profile is systematically added.

In older versions, it was removed with this option in the manifest. JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{ enabled: false }'

Now, this function doesn't seem to remove the profile, and this is causing me problems. Would you have a solution for removing it in this new buildpack version?

Thank you very much.