Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
Add option
Browse files Browse the repository at this point in the history
  • Loading branch information
ardikars committed Nov 12, 2018
1 parent 6d76396 commit 5cc7a92
Show file tree
Hide file tree
Showing 25 changed files with 155 additions and 324 deletions.
15 changes: 15 additions & 0 deletions gradle/artifactInstall.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ allprojects {
}

}

if (!project.name.equals("jxpacket")) {
pom.withXml {
asNode().dependencies.dependency.findAll { xmlDep ->
if (xmlDep.scope.text() == 'compile') {
def xmlOptional = xmlDep.optional[0]
if (!xmlOptional) {
xmlOptional = xmlDep.appendNode('optional')
}
xmlOptional.value = 'true'
}
}
}
}

}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/configure.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ext {

NAME = 'Jxpacket'
GROUP = 'com.ardikars.jxpacket'
VERSION = '1.1.0.RC24'
VERSION = '1.1.0.RC25'
DESCRIPTION = 'Jxpacket is a network packet crafting library for java.'

MAVEN_LOCAL_REPOSITORY = "${System.env.HOME}/.m2/repository"
Expand Down
4 changes: 2 additions & 2 deletions jxpacket-jxnet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
dependencies {
implementation ('com.ardikars.common:common-net')
implementation ('com.ardikars.common:common-util')
compileOnly ('com.ardikars.jxnet:jxnet-context')
compileOnly ('com.ardikars.jxnet:jxnet-core')
compile ('com.ardikars.jxnet:jxnet-context')
compile ('com.ardikars.jxnet:jxnet-core')
implementation project(':jxpacket-common')
implementation project(':jxpacket-core')
}
Expand Down
2 changes: 1 addition & 1 deletion jxpacket-pcap4j/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
dependencies {
implementation ('com.ardikars.common:common-net')
implementation ('com.ardikars.common:common-util')
compileOnly ("org.pcap4j:pcap4j-core:${PCAP4J_VERSION}")
compile "org.pcap4j:pcap4j-core:${PCAP4J_VERSION}"
implementation project(':jxpacket-common')
implementation project(':jxpacket-core')
}
Expand Down
7 changes: 2 additions & 5 deletions jxpacket-spring-boot-autoconfigure/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
dependencies {
implementation ("org.springframework.boot:spring-boot-configuration-processor")
implementation ("org.springframework.boot:spring-boot-autoconfigure")
implementation ("org.pcap4j:pcap4j-core:${PCAP4J_VERSION}")
implementation ("com.ardikars.jxnet:jxnet-context")
implementation ("com.ardikars.jxnet:jxnet-core")
implementation project(":jxpacket-common")
implementation project(":jxpacket-jxnet")
implementation project(":jxpacket-pcap4j")
compile project(":jxpacket-jxnet")
compile project(":jxpacket-pcap4j")
}

dependencyManagement {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
118 changes: 118 additions & 0 deletions jxpacket-spring-boot-autoconfigure/build/poms/pom-default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ardikars.jxpacket</groupId>
<artifactId>jxpacket-spring-boot-autoconfigure</artifactId>
<version>1.1.0.RC24</version>
<name>jxpacket-spring-boot-autoconfigure</name>
<description>Jxpacket is a network packet crafting library for java.</description>
<url>https://github.com/jxnet/Jxpacket</url>
<organization>
<name>ardikars</name>
<url>http://ardikars.com</url>
</organization>
<licenses>
<license>
<name>GNU Lesser General Public License, Version 3.0</name>
<url>http://www.gnu.org/licenses</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>ardikars</id>
<name>Ardika Rommy Sanjaya</name>
<email>[email protected]</email>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/jxnet/Jxpacket.git</connection>
<developerConnection>scm:git:[email protected]/jxnet/Jxpacket.git</developerConnection>
<url>https://github.com/jxnet/Jxpacket.git</url>
</scm>
<dependencies>
<dependency>
<groupId>com.ardikars.jxpacket</groupId>
<artifactId>jxpacket-jxnet</artifactId>
<version>1.1.0.RC24</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.ardikars.jxpacket</groupId>
<artifactId>jxpacket-pcap4j</artifactId>
<version>1.1.0.RC24</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.ardikars.common</groupId>
<artifactId>common-net</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.ardikars.common</groupId>
<artifactId>common-util</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-buffer</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.ardikars.jxpacket</groupId>
<artifactId>jxpacket-common</artifactId>
<version>1.1.0.RC24</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.ardikars.jxnet</groupId>
<artifactId>jxnet</artifactId>
<version>1.4.7.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.0.4.RELEASE</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>4.1.31.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.ardikars.common</groupId>
<artifactId>common</artifactId>
<version>1.2.2.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
</project>
129 changes: 0 additions & 129 deletions jxpacket-spring-boot-autoconfigure/build/reports/checkstyle/main.html

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5cc7a92

Please sign in to comment.