java - Gradle - Shared project dependencies as jar -
I have a project, which is a service (SOA). There are some classes in this project, such as DTO and rapper I would like to share with the client-project (UI)
So I want to make a jar to share with the project. I tried this:
// authorization - api.jar function apiJar (type: jar) {from (sourceSets.main.output) {Include "com / company / signature / authorization / Two problems: First, I want to change the name of the jar (need to be simple, need to be searched). Second, the jar was created with empty (folders (com / company / sig ...), but without squares Was: ("SourceSets.main.output") is estimating.
Should help:
work apiece (type: jar) {from (sourceSets.main.output) {"com / company / sig / authorization / dto / **"} archiveName = 'api .jar '}
As you can see, you are quite close :)
Comments
Post a Comment