Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch to using jnr-enxio-protocolfamily compat shim

  • Loading branch information...
commit 7870a266c3c05565b2cda44b4205bb762c17d29e 1 parent 751a5bb
Wayne Meissner authored
Showing with 13 additions and 42 deletions.
  1. +13 −39 pom.xml
  2. +0 −3  src/main/java/java/net/ProtocolFamily.java
View
52 pom.xml
@@ -66,48 +66,22 @@
</dependencies>
<profiles>
+
<profile>
- <id>jdk7</id>
+ <id>old-jdk</id>
<activation>
- <jdk>[1.7,)</jdk>
+ <jdk>(,1.6]</jdk>
</activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <excludes>
- <exclude>**/ProtocolFamily.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.github.jnr</groupId>
+ <artifactId>jnr-enxio-protocolfamily</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
</profile>
</profiles>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.3.1</version>
- <executions>
- <execution>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <excludes>
- <exclude>**/java/net</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
View
3  src/main/java/java/net/ProtocolFamily.java
@@ -1,3 +0,0 @@
-package java.net;
-
-public final class ProtocolFamily {}
Please sign in to comment.
Something went wrong with that request. Please try again.