Skip to content

Commit

Permalink
Merge pull request #11 from carlomorelli/add-continuous-integration
Browse files Browse the repository at this point in the history
Add continuous integration
  • Loading branch information
carlomorelli authored Jan 6, 2019
2 parents c3b060d + d07f60a commit 9125af2
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: java
jdk:
- openjdk8
script: mvn clean package jacoco:report coveralls:report
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

[![](https://jitpack.io/v/carlomorelli/licensescan-maven-plugin.svg)](https://jitpack.io/#carlomorelli/licensescan-maven-plugin)

[![Build Status](https://travis-ci.org/carlomorelli/licensescan-maven-plugin.svg?branch=master)](https://travis-ci.org/carlomorelli/licensescan-maven-plugin)

[![Coverage Status](https://coveralls.io/repos/github/carlomorelli/licensescan-maven-plugin/badge.svg?branch=master)](https://coveralls.io/github/carlomorelli/licensescan-maven-plugin?branch=master)



LicenseScan Maven plugin audits the dependencies and the transitive dependencies for the Runtime and Compile scopes,
and allow to fail the build if a license is detected belonging to the configured blacklist.

Expand Down
31 changes: 29 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<jacoco-maven-plugin.version>0.8.2</jacoco-maven-plugin.version>
<maven-coveralls-plugin.version>4.3.0</maven-coveralls-plugin.version>
<maven-takari-lifecycle-plugin.version>1.13.4</maven-takari-lifecycle-plugin.version>
<maven.version>3.0.5</maven.version>
<takari-testing.version>2.8.0</takari-testing.version>
</properties>
</properties>

<dependencies>
<dependency>
Expand Down Expand Up @@ -73,10 +78,12 @@

<build>
<plugins>

<!-- test harness -->
<plugin>
<groupId>io.takari.maven.plugins</groupId>
<artifactId>takari-lifecycle-plugin</artifactId>
<version>1.13.4</version>
<version>${maven-takari-lifecycle-plugin.version}</version>
<extensions>true</extensions>
<executions>
<execution>
Expand All @@ -88,6 +95,26 @@
</execution>
</executions>
</plugin>

<!-- code coverage -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>${maven-coveralls-plugin.version}</version>
</plugin>
</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion src/test/projects/basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<plugin>
<groupId>com.github.carlomorelli</groupId>
<artifactId>licensescan-maven-plugin</artifactId>
<version>1.1</version>
<version>2.0</version>
<configuration>
<printLicenses>true</printLicenses>
<blacklistedLicenses>
Expand Down
2 changes: 1 addition & 1 deletion src/test/projects/integration_fail/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<plugin>
<groupId>com.github.carlomorelli</groupId>
<artifactId>licensescan-maven-plugin</artifactId>
<version>1.1</version>
<version>2.0</version>
<configuration>
<printLicenses>true</printLicenses>
<blacklistedLicenses>
Expand Down
2 changes: 1 addition & 1 deletion src/test/projects/integration_pass/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<plugin>
<groupId>com.github.carlomorelli</groupId>
<artifactId>licensescan-maven-plugin</artifactId>
<version>1.1</version>
<version>2.0</version>
<configuration>
<printLicenses>true</printLicenses>
<blacklistedLicenses>
Expand Down

0 comments on commit 9125af2

Please sign in to comment.