slimjar icon indicating copy to clipboard operation
slimjar copied to clipboard

Multi-module issue.

Open portlek opened this issue 4 years ago • 7 comments

I have A and B modules. A is like a common module. B depends A.

I'm using slim 'xx:yy:zz' on A module but dependencies don't come to B module so, I have to write all dependencies which are in the A module to B module's dependencies again.

I think we should able to use the A module's dependencies in the B module without the duplication.

Real example: image image

portlek avatar Jul 21 '21 20:07 portlek

Use the java-library plugin in your common project, then you will have access to the slimApi configuration which will expose the dependencies to the dependent.

dependencies {
     slimApi "...:..:..."
}

Vshnv avatar Jul 21 '21 21:07 Vshnv

@Vshnv where should i use this slimApi? In the common module's dependencies? like that? image

portlek avatar Jul 22 '21 19:07 portlek

I did like tha image, it's quite working but don't writing dependencies into the .json file.

portlek avatar Jul 22 '21 20:07 portlek

I see, Ill look into checking for transitive dependencies with that config

Vshnv avatar Jul 22 '21 20:07 Vshnv

any progress?

portlek avatar Oct 06 '21 11:10 portlek

This isnt currently a priority, working on a few other issues rn. This issue is currently open for anyone to try to fix

Vshnv avatar Oct 06 '21 14:10 Vshnv

@Vshnv I was trying to fix the issue and I did solve the issue with stupid(I hope not :P) way.

portlek avatar Oct 07 '21 13:10 portlek