Skip to content

Commit

Permalink
1.0.1: Fixed jar not working due to IntelliJ form.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirBlobman committed Sep 8, 2021
1 parent 6cf8b7b commit 840a664
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 1 deletion.
84 changes: 83 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>xyz.sirblobman</groupId>
<artifactId>votifier-tester</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<properties>
<java.version>16</java.version>
Expand All @@ -16,4 +16,86 @@

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<!-- IntelliJ Forms -->
<dependency>
<groupId>com.intellij</groupId>
<artifactId>forms_rt</artifactId>
<version>7.0.3</version>
<scope>compile</scope>
</dependency>
</dependencies>

<pluginRepositories>
<pluginRepository>
<id>jitpack</id>
<url>https://jitpack.io</url>
</pluginRepository>
</pluginRepositories>

<build>
<defaultGoal>clean package</defaultGoal>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>

<configuration>
<archive>
<manifest>
<mainClass>xyz.sirblobman.votifier.tester.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0-SNAPSHOT</version>

<configuration>
<artifactSet>
<includes>
<include>com.intellij:forms_rt</include>
</includes>
</artifactSet>

<filters>
<filter>
<artifact>com.intellij:forms_rt</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
</excludes>
</filter>
</filters>
</configuration>

<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.github.BenjaminFaal</groupId>
<artifactId>intellij-idea-gui-designer-maven-plugin</artifactId>
<version>2020.3.1</version>
<executions>
<execution>
<goals>
<goal>compile-forms</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
1 change: 1 addition & 0 deletions src/main/java/xyz/sirblobman/votifier/tester/VoteForm.form
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
</constraints>
<properties>
<lineWrap value="true"/>
<wrapStyleWord value="true"/>
</properties>
</component>
</children>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/xyz/sirblobman/votifier/tester/VoteForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,5 @@ private void onSubmit(ActionEvent e) {
resetForm();
this.submitButton.setEnabled(true);
}

}

0 comments on commit 840a664

Please sign in to comment.