Skip to content

Commit

Permalink
Remove profile inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydahanne committed Sep 11, 2023
1 parent dbcaf77 commit a58b76f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions lib/java_buildpack/framework/java_cf_env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ def compile
# (see JavaBuildpack::Component::BaseComponent#release)
def release
@droplet.additional_libraries << (@droplet.sandbox + jar_name)
@droplet.environment_variables.add_environment_variable \
'SPRING_PROFILES_INCLUDE', '$SPRING_PROFILES_INCLUDE,cloud'
end

protected
Expand Down
8 changes: 0 additions & 8 deletions spec/java_buildpack/framework/java_cfenv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,4 @@
expect(additional_libraries).to include(sandbox + "java_cf_env-#{version}.jar")
end

it 'activates the cloud profile',
app_fixture: 'framework_java_cf_boot_3',
cache_fixture: 'stub-java-cfenv.jar' do

component.release

expect(environment_variables).to include('SPRING_PROFILES_INCLUDE=$SPRING_PROFILES_INCLUDE,cloud')
end
end

0 comments on commit a58b76f

Please sign in to comment.