-
Notifications
You must be signed in to change notification settings - Fork 640
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
[ISSUE-883] Transitively export the dependencies of [eventmesh-sdk-java] to other module #884
Conversation
…] to other module
Codecov Report
@@ Coverage Diff @@
## master #884 +/- ##
===========================================
- Coverage 7.09% 7.06% -0.03%
Complexity 442 442
===========================================
Files 346 346
Lines 21695 21691 -4
Branches 2415 2411 -4
===========================================
- Hits 1539 1533 -6
- Misses 20039 20041 +2
Partials 117 117
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted, see below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though maven-publish is included in the project, there should be a committor to do the related test.
eventmesh-sdk-java/build.gradle
Outdated
@@ -15,10 +15,15 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
plugins { | |||
id 'java-library' | |||
id 'com.github.johnrengelman.shadow' version '7.1.2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After I use the java-library
and change the dependency configuration to api
, the built jar file still does not contain the dependencies.
Thus the shadow
plugin used here to generate a fat jar. (for your reference)
Good catch. Right now, the scope of And I think we don't need to make a shawdow jar. cc @xwm1992 |
Currently I'm trying to use the following script to generate a fat jar of [eventmesh-sdk-java] (without the usage of
|
I suggest we just change the scope of |
I used to use the |
@HoffmanZheng any update? |
Co-authored-by: Wenjun Ruan <[email protected]>
Co-authored-by: Wenjun Ruan <[email protected]>
updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[ISSUE-883] Transitively export the dependencies of [eventmesh-sdk-java] to other module
Fixes ISSUE #883 .
Motivation
eventmesh-sdj-java is a library module, should transitively export the dependencies, which are necessary for development of eventmesh-application.
Modifications
Add gradle plugin java-library in eventmesh-sdk-java
Change the configuration of following dependencies from
implementation
toapi
:Documentation
Not a new feature, thus no doc needed.