Skip to content

Commit 6c1c71f

Browse files
committed
Release 0.0.4. This should fix #2. The project member variable was in AbstractCreateMojo and FlatkpakMojo. Only one of these would be injected.
1 parent 475e9af commit 6c1c71f

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ In which case you can just do `mvn clean package`.
174174

175175
## Changes
176176

177+
### 0.0.4
178+
179+
* Fix [NPE](https://github.com/bithatch/maven-flatpak-plugin/issues/2).
180+
177181
### 0.0.3
178182

179183
* Support the complete manifest in `<manifest>`.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>uk.co.bithatch</groupId>
55
<artifactId>flatpak-maven-plugin</artifactId>
6-
<version>0.0.3</version>
6+
<version>0.0.4</version>
77
<packaging>maven-plugin</packaging>
88
<name>Flatpak Maven Plugin</name>
99
<properties>

src/main/java/uk/co/bithatch/maven/flatpak/plugin/AbstractCreateMojo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public abstract class AbstractCreateMojo extends AbstractMojo {
5050
private boolean skip;
5151

5252
@Parameter(required = true, readonly = true, property = "project")
53-
private MavenProject project;
53+
protected MavenProject project;
5454

5555
@Parameter(defaultValue = "${project.build.sourceDirectory}/flatpak", required = true)
5656
protected File flatpakDataDirectory;
@@ -86,12 +86,15 @@ public abstract class AbstractCreateMojo extends AbstractMojo {
8686
private String categories;
8787

8888
@Parameter
89+
@Deprecated
8990
private String runtime;
9091

9192
@Parameter
93+
@Deprecated
9294
private String runtimeVersion;
9395

9496
@Parameter
97+
@Deprecated
9598
private String sdk;
9699

97100
protected Module appModule;

src/main/java/uk/co/bithatch/maven/flatpak/plugin/FlatpakMojo.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public class FlatpakMojo extends AbstractCreateMojo {
5151
@Parameter
5252
private List<String> excludeArtifacts;
5353

54-
@Parameter(required = true, readonly = true, property = "project")
55-
private MavenProject project;
56-
5754
@Parameter()
5855
private boolean includeProject = true;
5956

0 commit comments

Comments
 (0)