Skip to content

Commit

Permalink
feat(plugin): Embed icon, documentation and addtional information for…
Browse files Browse the repository at this point in the history
… plugin

Closes gravitee-io/issues#4123
  • Loading branch information
gcusnieux authored and leleueri committed Oct 7, 2020
1 parent a5dda16 commit 97cb775
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions jwt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,26 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>initialize</phase>
<id>load-plugin-properties</id>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${project.basedir}/src/main/resources/plugin.properties</file>
</files>
<quiet>false</quiet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
Expand Down
17 changes: 16 additions & 1 deletion src/assembly/policy-assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@
<outputDirectory>schemas</outputDirectory>
</fileSet>

<fileSet>
<directory>${basedir}</directory>
<includes>
<include>README.adoc</include>
</includes>
<outputDirectory>docs</outputDirectory>
</fileSet>

<fileSet>
<directory>${basedir}</directory>
<includes>
<include>${icon}</include>
</includes>
</fileSet>

<!-- Create the empty lib directory in case of no libraries is required -->
<!-- As there is no maven-assembly-plugin's method do to that, we hack it ourself -->
<fileSet>
Expand All @@ -56,4 +71,4 @@
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
</dependencySets>
</assembly>
</assembly>
2 changes: 2 additions & 0 deletions src/main/resources/plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ version=${project.version}
description=${project.description}
class=io.gravitee.policy.jwt.JWTPolicy
type=policy
category=security
icon=jwt.svg

0 comments on commit 97cb775

Please sign in to comment.