How to expand property references in jar resources?

前端 未结 5 1944
挽巷
挽巷 2021-01-12 06:47

I\'m using Gradle to build a jar containing an xml file in META-INF. This file has a row like



        
5条回答
  •  抹茶落季
    2021-01-12 07:04

    I stumbled across this post in a thread about a different but closely related issue. Turns out you want to configure the processResources task, not the jar task:

    processResources {
        expand project.properties
    }
    

    For some reason, though, I did have to clean once before Gradle noticed the change.

提交回复
热议问题