Skip to content

Commit

Permalink
test:fix: issue-442 test has a runnable Jar application
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa authored and iocanel committed Aug 14, 2023
1 parent e202137 commit 8dd2868
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions tests/issue-442-build-config-name/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,25 @@ limitations under the License.
<target>${java.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${version.maven-shade-plugin}</version>
<executions>
<execution>
<goals><goal>shade</goal></goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>io.dekorate.example.Main</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
@Dekorate
public class Main {

public static void main(String[] args) {
public static void main(String[] args) throws Exception {
Thread.sleep(3_600_000);
}

}

0 comments on commit 8dd2868

Please sign in to comment.