Skip to content

Commit

Permalink
Make JCtools available (provided scope) for tests and optional OSGI, …
Browse files Browse the repository at this point in the history
…issue netty#5383
  • Loading branch information
Guido Medina authored and normanmaurer committed Jun 11, 2016
1 parent cc580e3 commit b921f80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
Expand Down Expand Up @@ -47,6 +47,8 @@
<dependency>
<groupId>org.jctools</groupId>
<artifactId>jctools-core</artifactId>
<!-- Need compile scope to be taken into account by shade plugin -->
<scope>compile</scope>
<!-- Mark as optional as otherwise the bundle plugin will add strict import statements and so fail in OSGI containers-->
<optional>true</optional>
</dependency>
Expand Down Expand Up @@ -182,7 +184,6 @@
</goals>
<configuration>
<instructions>
<!-- Exclude org.jctools.* as we shade it -->
<!-- NativeLibraryLoader can be used to manually load native libraries from other bundles that this bundle does not depend on,
hence use DynamicImport-Package instruction to ensure the loading is successful -->
<DynamicImport-Package>*</DynamicImport-Package>
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,13 @@
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>

<!-- Provided dependency for tests inside IDEs -->
<dependency>
<groupId>org.jctools</groupId>
<artifactId>jctools-core</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit b921f80

Please sign in to comment.