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

how can i put the properties file into the jar using johnrengelman shadowJar #216

Open
joeleoli opened this issue Sep 8, 2022 · 0 comments

Comments

@joeleoli
Copy link

joeleoli commented Sep 8, 2022

so i'm trying to get the properties file into the jar with shadow jar but i have no clue how to do it.
(the file ends up in the root directory of the project)

currently using this in my build.gradle:

gitProperties {
    keys = ["git.commit.id.abbrev", "git.commit.id", "git.branch"]

    gitPropertiesName = "app.properties"
    gitPropertiesResourceDir = file("${project.rootDir}/assets/properties")
}

shadowJar {
    exclude "**/*.kotlin_metadata"
    exclude "**/*.kotlin_builtins"
    exclude "kotlin/"
    exclude "META-INF/"

    archiveFileName = "orange.jar"
}

any help appreciated.

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

No branches or pull requests

1 participant