Skip to content

Commit fe7fcb6

Browse files
committed
Added Engine API example with GUI demo
1 parent bbd458a commit fe7fcb6

File tree

7 files changed

+1065
-12
lines changed

7 files changed

+1065
-12
lines changed

pom.xml

Lines changed: 89 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,106 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
This file is part of Qlik Sense Java Examples <https://github.com/StevenJDH/Qlik-Sense-Java-Examples>.
4+
Copyright (C) 2019-2020 Steven Jenkins De Haro.
5+
6+
Qlik Sense Java Examples is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
Qlik Sense Java Examples is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with Qlik Sense Java Examples. If not, see <http://www.gnu.org/licenses/>.
18+
-->
219
<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/xsd/maven-4.0.0.xsd">
320
<modelVersion>4.0.0</modelVersion>
421
<groupId>examples</groupId>
522
<artifactId>QlikSenseJavaExamples</artifactId>
6-
<version>1.0-SNAPSHOT</version>
23+
<version>1.1-SNAPSHOT</version>
724
<packaging>jar</packaging>
825
<properties>
926
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1027
<maven.compiler.source>12</maven.compiler.source>
1128
<maven.compiler.target>12</maven.compiler.target>
1229
</properties>
13-
<build>
30+
<dependencies>
31+
32+
<!-- https://mvnrepository.com/artifact/org.java-websocket/Java-WebSocket -->
33+
<dependency>
34+
<groupId>org.java-websocket</groupId>
35+
<artifactId>Java-WebSocket</artifactId>
36+
<version>1.5.1</version>
37+
</dependency>
38+
<!-- https://mvnrepository.com/artifact/org.json/json -->
39+
<dependency>
40+
<groupId>org.json</groupId>
41+
<artifactId>json</artifactId>
42+
<version>20200518</version>
43+
</dependency>
44+
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
45+
<dependency>
46+
<groupId>org.slf4j</groupId>
47+
<artifactId>slf4j-api</artifactId>
48+
<version>1.7.30</version>
49+
</dependency>
50+
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
51+
<dependency>
52+
<groupId>org.slf4j</groupId>
53+
<artifactId>slf4j-log4j12</artifactId>
54+
<version>1.7.30</version>
55+
</dependency>
56+
57+
</dependencies>
58+
<build>
1459
<plugins>
60+
<!-- Added to have an Uber JAR and to avoid java.lang.NoClassDefFoundError errors. -->
1561
<plugin>
1662
<groupId>org.apache.maven.plugins</groupId>
17-
<artifactId>maven-jar-plugin</artifactId>
18-
<version>2.4</version>
19-
<configuration>
20-
<archive>
21-
<manifest>
22-
<addClasspath>true</addClasspath>
23-
<mainClass>TicketAPI.TicketRequestDemo</mainClass>
24-
</manifest>
25-
</archive>
26-
</configuration>
63+
<artifactId>maven-shade-plugin</artifactId>
64+
<version>3.2.4</version>
65+
<executions>
66+
<execution>
67+
<phase>package</phase>
68+
<goals>
69+
<goal>shade</goal>
70+
</goals>
71+
<configuration>
72+
<artifactSet>
73+
<includes>
74+
<include>org.java-websocket:Java-WebSocket</include>
75+
<include>org.json:json</include>
76+
<include>org.slf4j:*</include>
77+
<include>log4j:log4j</include>
78+
</includes>
79+
</artifactSet>
80+
<!-- Ingore accessed denied error when compiling, it's a bug when using minimizeJar.
81+
Ticket: https://issues.apache.org/jira/browse/MSHADE-366 -->
82+
<minimizeJar>true</minimizeJar>
83+
<filters>
84+
<filter>
85+
<artifact>*:*</artifact>
86+
<excludes>
87+
<exclude>META-INF/*.MF</exclude>
88+
</excludes>
89+
</filter>
90+
</filters>
91+
<transformers>
92+
<transformer
93+
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
94+
<mainClass>Demo.DemoSelector</mainClass>
95+
</transformer>
96+
</transformers>
97+
<!-- Fixes "Project's main artifact is processed through maven-shade-plugin." -->
98+
<shadedArtifactAttached>true</shadedArtifactAttached>
99+
<!-- Can be any name that makes sense or it will be "shaded." -->
100+
<shadedClassifierName>Uber</shadedClassifierName>
101+
</configuration>
102+
</execution>
103+
</executions>
27104
</plugin>
28105
</plugins>
29106
</build>

0 commit comments

Comments
 (0)