Skip to content

Commit 110e00a

Browse files
committed
Additional aspectjweaver JAR Location
Previously, the search for aspectweaver-*.jar only searched for Spring Boot typical locations`. It missed JARs in non-Boot applications. This change loosens the search for the JAR so that non-Boot application can be used. [#473]
1 parent 85b13d0 commit 110e00a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/java_buildpack/util/jar_finder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def version(application)
4848
private
4949

5050
def jar(application)
51-
(application.root + '**/lib/*.jar').glob.find { |jar| jar.to_s =~ @pattern }
51+
(application.root + '**/*.jar').glob.find { |jar| jar.to_s =~ @pattern }
5252
end
5353

5454
end

spec/fixtures/framework_aspectj_weaver_classes/BOOT-INF/lib/aspectjweaver-1.8.10.jar renamed to spec/fixtures/framework_aspectj_weaver_classes/repository/org/aspectj/aspectjweaver/1.8.10/aspectjweaver-1.8.10.jar

File renamed without changes.

0 commit comments

Comments
 (0)