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

implement support for classpath.idx file #68

Merged
merged 1 commit into from
Dec 15, 2020
Merged

Conversation

plaird
Copy link
Contributor

@plaird plaird commented Dec 15, 2020

This implements the solution for #33 for classpath.idx files. This is a new feature in Spring Boot 2.3.

https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-executable-jar-format.html#executable-jar-war-index-files-classpath

This PR allows you to pass in a classpath.idx file, which will be positioned inside the Spring Boot executable jar file.

springboot(
    name = "helloworld",
    boot_app_class = "com.sample.SampleMain",
    java_library = ":helloworld_lib",

    # if you have conflicting classes in dependency jar files, you can define the order in which the jars are loaded
    #  https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-executable-jar-format.html#executable-jar-war-index-files-classpath
    classpath_index = "helloworld_classpath.idx",
)

@plaird plaird merged commit 974bb79 into master Dec 15, 2020
@plaird plaird deleted the plaird/classpath_index branch December 15, 2020 23:59
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

Successfully merging this pull request may close these issues.

1 participant