Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Adopt jasperreports-plugin #86

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: maven
directory: "/"
schedule:
interval: daily
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:
branches:
- 'main'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Maven build
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_SIGNING_KEY: ${{ secrets.MAVEN_SIGNING_KEY }}
run: |
echo "$MAVEN_SIGNING_KEY" > MAVEN_SIGNING_KEY_FILE.base64
base64 --decode MAVEN_SIGNING_KEY_FILE.base64 > MAVEN_SIGNING_KEY_FILE.bin
gpg --batch --fast-import MAVEN_SIGNING_KEY_FILE.bin
mvn deploy -s cd/settings.xml -P sign,native
- name: Sonar
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn org.jacoco:jacoco-maven-plugin:prepare-agent org.apache.maven.plugins:maven-surefire-plugin:test org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Java CI
name: Pull Request CI

on: [push]
on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn test
- name: Maven build
run: mvn -B install
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 3.0

- Move plugin to pro-crafting.
- No other changes planned for this release. This one is intended for a clean migration.

# 2.8

- Update to Jasper 6.15
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
JasperReports-plugin
=============

This maven compiles Jasper files to the target directory.
This maven plugin compiles Jasper files to the target directory.

Migration to version 3
----------

@alexnederlof is the original author of the plugin, but has not used it in years. The plugin got adopted by me (@Postremus) and migrated to the pro-crafting organization.
Main goal of the adoption is to always provide a version for the latest jasperreports release.

For this reason, when migrating from jasperreports-plugin 2.8 to 3.0, you will need to change the plugins groupdid, as outlined in section [Usage](#usage)

# 👋 This plugin is up for adoption
I've not used this plugin myself in years, so I'd like to hand this project over
to people who actually use it. If you are interested, please open an issue to
reach me. - Alex

Motivation
----------
Expand All @@ -20,7 +24,7 @@ You can use the plugin by adding it to the plug-in section in your pom;
<build>
<plugins>
<plugin>
<groupId>com.alexnederlof</groupId>
<groupId>com.pro-crafting.tools</groupId>
<artifactId>jasperreports-plugin</artifactId>
<version>2.8</version>
<executions>
Expand Down
118 changes: 30 additions & 88 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
<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>
<groupId>com.alexnederlof</groupId>

<parent>
<groupId>com.pro-crafting</groupId>
<artifactId>pc-parent</artifactId>
<version>11</version>
</parent>

<groupId>com.pro-crafting.tools</groupId>
<artifactId>jasperreports-plugin</artifactId>

<packaging>maven-plugin</packaging>
<version>2.9-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>

<name>jasperreport-plugin</name>
<description>A Jasper compiler plugin</description>
<url>http://github.com/alexnederlof/Jasper-report-maven-plugin</url>
<url>https://github.com/pro-crafting/Jasper-report-maven-plugin</url>


<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.release>8</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
Expand All @@ -22,19 +29,12 @@
</prerequisites>

<scm>
<connection>scm:git:[email protected]:alexnederlof/Jasper-report-maven-plugin.git</connection>
<url>http://github.com/alexnederlof/Jasper-report-maven-plugin</url>
<developerConnection>scm:git:[email protected]:alexnederlof/Jasper-report-maven-plugin.git</developerConnection>
<connection>scm:git:[email protected]:pro-crafting/Jasper-report-maven-plugin.git</connection>
<url>https://github.com/pro-crafting/Jasper-report-maven-plugin</url>
<developerConnection>scm:git:[email protected]:pro-crafting/Jasper-report-maven-plugin.git</developerConnection>
<tag>HEAD</tag>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>


<developers>
<developer>
Expand Down Expand Up @@ -68,6 +68,13 @@
<name>Benjamin Wiedmann</name>
<email>[email protected]</email>
</developer>

<developer>
<id>Postremus</id>
<name>Martin Panzer</name>
<email>[email protected]</email>
<timezone>+2</timezone>
</developer>
</developers>

<dependencies>
Expand Down Expand Up @@ -140,31 +147,9 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<useFile>false</useFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -193,17 +178,6 @@
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
Expand All @@ -212,52 +186,20 @@
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>


<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<repositories>
<repository>
<id>main</id>
<url>https://repo.maven.apache.org/maven2/</url>
<id>jaspersoft-third-party</id>
<url>https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/</url>
</repository>
<repository>
<id>jasperreports</id>
<url>https://jaspersoft.jfrog.io/jaspersoft/jr-ce-releases</url>
<id>jr-ce-snapshots</id>
<name>JasperReports CE Snapshots</name>
<url>https://jaspersoft.jfrog.io/jaspersoft/jr-ce-snapshots</url>
</repository>
<repository>
<id>jaspersoft-third-party</id>
<url>https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/</url>
<id>jr-ce-releases</id>
<name>JasperReports CE Releases</name>
<url>https://jaspersoft.jfrog.io/jaspersoft/jr-ce-releases</url>
</repository>
</repositories>

</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.alexnederlof.jasperreport;
package com.pro_crafting.tools.jasperreport;

/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.alexnederlof.jasperreport;
package com.pro_crafting.tools.jasperreport;

/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.alexnederlof.jasperreport;
package com.pro_crafting.tools.jasperreport;

/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
Expand Down