Skip to content

Commit

Permalink
[improve][broker] Include runtime dependencies in server distribution (
Browse files Browse the repository at this point in the history
…#22001)

(cherry picked from commit 57025bc)
  • Loading branch information
dragosvictor authored and lhotari committed Jun 13, 2024
1 parent 5e6287f commit cdd40e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion distribution/server/src/assemble/LICENSE.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ The Apache Software License, Version 2.0
- io.reactivex.rxjava3-rxjava-3.0.1.jar
* RoaringBitmap
- org.roaringbitmap-RoaringBitmap-0.9.44.jar
- org.roaringbitmap-shims-0.9.44.jar

BSD 3-clause "New" or "Revised" License
* Google auth library
Expand Down Expand Up @@ -536,7 +537,6 @@ Protocol Buffers License

CDDL-1.1 -- ../licenses/LICENSE-CDDL-1.1.txt
* Java Annotations API
- javax.annotation-javax.annotation-api-1.3.2.jar
- com.sun.activation-javax.activation-1.2.0.jar
- javax.xml.bind-jaxb-api-2.3.1.jar
* Java Servlet API -- javax.servlet-javax.servlet-api-3.1.0.jar
Expand Down
9 changes: 6 additions & 3 deletions distribution/server/src/assemble/bin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<dependencySet>
<outputDirectory>lib</outputDirectory>
<unpack>false</unpack>
<scope>compile</scope>
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
<!-- Include 'groupId' in the dependencies Jar names to better identify
the provenance of the jar -->
Expand All @@ -135,12 +135,15 @@
<excludes>
<exclude>org.apache.pulsar:pulsar-functions-runtime-all</exclude>

<exclude>org.projectlombok:lombok</exclude>

<!-- prevent adding pulsar-functions-api-examples in lib -->
<exclude>org.apache.pulsar:pulsar-functions-api-examples</exclude>
<!-- prevent adding any distribution .tar.gz files in lib -->
<exclude>*:tar.gz</exclude>
<!-- prevent adding annotation libraries -->
<exclude>org.codehaus.mojo:animal-sniffer-annotations</exclude>
<exclude>com.google.android:annotations</exclude>
<!-- Needed only in the pulsar-shell distro only -->
<exclude>net.java.dev.jna:jna</exclude>
</excludes>
</dependencySet>
</dependencySets>
Expand Down

0 comments on commit cdd40e1

Please sign in to comment.