Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
charphi committed Sep 18, 2018
0 parents commit ac21adb
Show file tree
Hide file tree
Showing 15 changed files with 1,446 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
9 changes: 9 additions & 0 deletions .travis.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>oss-jfrog-artifactory</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
</settings>
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: java
jdk:
- oraclejdk8

cache:
directories:
- $HOME/.m2

deploy:
# SNAPSHOTS from develop & jdk8
- provider: script
script: mvn deploy -Dmaven.test.skip -s .travis.settings.xml -P deploy-snapshots
skip_cleanup: true
on:
branch: develop
jdk: oraclejdk8
condition: $TRAVIS_PULL_REQUEST = "false"

# RELEASES from master & jdk8
- provider: script
script: mvn deploy -Dmaven.test.skip -s .travis.settings.xml -P deploy-releases
skip_cleanup: true
on:
branch: master
jdk: oraclejdk8
condition: $TRAVIS_PULL_REQUEST = "false"
171 changes: 171 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>be.nbb.rd</groupId>
<artifactId>java-net-proxy</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>java-net-proxy</name>
<description>Java Net proxy utilities</description>
<url>https://github.com/nbbrd/java-net-proxy</url>

<organization>
<name>National Bank of Belgium</name>
</organization>

<licenses>
<license>
<name>European Union Public Licence (EUPL)</name>
<url>https://joinup.ec.europa.eu/page/eupl-text-11-12</url>
</license>
</licenses>

<properties>
<!-- build -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven-source-plugin.version>2.4</maven-source-plugin.version>
<jacoco-maven-plugin.version>0.7.9</jacoco-maven-plugin.version>

<!-- dev support -->
<lombok.version>1.16.18</lombok.version>
<netbeans.version>RELEASE82</netbeans.version>
<junit.version>4.12</junit.version>
<assertj-core.version>3.11.1</assertj-core.version>
<jsr305.version>3.0.2</jsr305.version>

<!-- main dependencies -->
<powershell-lib-java.version>1.1.0</powershell-lib-java.version>
</properties>

<dependencies>
<!-- compile only -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util-lookup</artifactId>
<version>${netbeans.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${jsr305.version}</version>
<scope>provided</scope>
</dependency>

<!-- compile and runtime -->
<dependency>
<groupId>com.github.tuupertunut</groupId>
<artifactId>powershell-lib-java</artifactId>
<version>${powershell-lib-java.version}</version>
</dependency>

<!-- test only -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj-core.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

<profiles>
<!-- Deploy SNAPSHOTS to jfrog with sources -->
<profile>
<id>deploy-snapshots</id>
<distributionManagement>
<snapshotRepository>
<id>oss-jfrog-artifactory</id>
<url>https://oss.jfrog.org/artifactory/oss-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>

<!-- Deploy RELEASES to jfrog with sources -->
<profile>
<id>deploy-releases</id>
<distributionManagement>
<repository>
<id>oss-jfrog-artifactory</id>
<url>https://oss.jfrog.org/artifactory/oss-release-local</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading

0 comments on commit ac21adb

Please sign in to comment.