|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <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">
|
3 | 3 | <modelVersion>4.0.0</modelVersion>
|
| 4 | + |
| 5 | + <!-- The project parent defines basic requirements for the add-on --> |
| 6 | + <parent> |
| 7 | + <groupId>in.virit.sb</groupId> |
| 8 | + <artifactId>viritin-addon-project-parent</artifactId> |
| 9 | + <version>0.0.3</version> |
| 10 | + </parent> |
| 11 | + |
4 | 12 | <groupId>org.parttio</groupId>
|
5 | 13 | <artifactId>velocity-component</artifactId>
|
6 | 14 | <version>0.0.3-SNAPSHOT</version>
|
7 | 15 | <name>VelocityComponent</name>
|
8 | 16 | <description>A Helper Library to build JavaScript components for Vaadin using Velocity templating engine powered JS.</description>
|
9 | 17 | <url>https://github.com/parttio/velocity-component</url>
|
10 | 18 | <properties>
|
| 19 | + <!-- You can define the Vaadin version used during development as property if needed |
| 20 | + default comes from the parent though. |
| 21 | + --> |
11 | 22 | <vaadin.version>24.4.10</vaadin.version>
|
12 | 23 | </properties>
|
13 | 24 | <organization>
|
|
25 | 36 | <distribution>repo</distribution>
|
26 | 37 | </license>
|
27 | 38 | </licenses>
|
28 |
| - <dependencyManagement> |
29 |
| - <dependencies> |
30 |
| - <dependency> |
31 |
| - <groupId>com.vaadin</groupId> |
32 |
| - <artifactId>vaadin-bom</artifactId> |
33 |
| - <type>pom</type> |
34 |
| - <scope>import</scope> |
35 |
| - <version>${vaadin.version}</version> |
36 |
| - </dependency> |
37 |
| - </dependencies> |
38 |
| - </dependencyManagement> |
39 | 39 |
|
40 | 40 | <scm>
|
41 | 41 | <url>https://github.com/parttio/velocity-component</url>
|
|
57 | 57 | </issueManagement>
|
58 | 58 |
|
59 | 59 | <dependencies>
|
60 |
| - <dependency> |
61 |
| - <groupId>com.vaadin</groupId> |
62 |
| - <artifactId>vaadin-core</artifactId> |
63 |
| - </dependency> |
| 60 | + <!-- In simple add-ons, dependency section can be empty as the parent provides essentials --> |
| 61 | + |
64 | 62 | <dependency>
|
65 | 63 | <groupId>org.apache.velocity</groupId>
|
66 | 64 | <artifactId>velocity-engine-core</artifactId>
|
67 | 65 | <version>2.3</version>
|
68 | 66 | </dependency>
|
69 | 67 |
|
| 68 | + <!-- Copilot is currently excluded in the parent as it currently slows down the startup quite a bit, |
| 69 | + but can be added back if needed for development: |
70 | 70 | <dependency>
|
71 |
| - <groupId>org.slf4j</groupId> |
72 |
| - <artifactId>slf4j-simple</artifactId> |
73 |
| - <scope>test</scope> |
74 |
| - </dependency> |
75 |
| - <dependency> |
76 |
| - <groupId>in.virit</groupId> |
77 |
| - <artifactId>viritin</artifactId> |
78 |
| - <version>2.1.0</version> |
| 71 | + <groupId>com.vaadin</groupId> |
| 72 | + <artifactId>copilot</artifactId> |
79 | 73 | <scope>test</scope>
|
80 | 74 | </dependency>
|
| 75 | + --> |
81 | 76 | </dependencies>
|
82 | 77 |
|
83 | 78 | <build>
|
84 | 79 | <plugins>
|
85 |
| - <plugin> |
86 |
| - <groupId>org.apache.maven.plugins</groupId> |
87 |
| - <artifactId>maven-compiler-plugin</artifactId> |
88 |
| - <version>3.11.0</version> |
89 |
| - <configuration> |
90 |
| - <release>17</release> |
91 |
| - </configuration> |
92 |
| - </plugin> |
93 |
| - |
94 |
| - <plugin> |
95 |
| - <groupId>org.apache.maven.plugins</groupId> |
96 |
| - <artifactId>maven-jar-plugin</artifactId> |
97 |
| - <version>3.1.0</version> |
98 |
| - <configuration> |
99 |
| - <excludes> |
100 |
| - <exclude>META-INF/VAADIN/config/flow-build-info.json</exclude> |
101 |
| - </excludes> |
102 |
| - <archive> |
103 |
| - <index>true</index> |
104 |
| - <manifest> |
105 |
| - <addClasspath>false</addClasspath> |
106 |
| - <addDefaultImplementationEntries>true |
107 |
| - </addDefaultImplementationEntries> |
108 |
| - </manifest> |
109 |
| - <manifestEntries> |
110 |
| - <Vaadin-Package-Version>1</Vaadin-Package-Version> |
111 |
| - </manifestEntries> |
112 |
| - </archive> |
113 |
| - </configuration> |
114 |
| - </plugin> |
115 |
| - |
| 80 | + <!-- The maven-release-plugin is used to deploy this add-on to Maven Central. |
| 81 | + Plugin configs required for Vaadin add-on itself are defined in the parent pom. |
| 82 | + --> |
116 | 83 | <plugin>
|
117 | 84 | <groupId>org.apache.maven.plugins</groupId>
|
118 | 85 | <artifactId>maven-release-plugin</artifactId>
|
119 |
| - <version>3.0.0-M7</version> |
| 86 | + <version>3.1.0</version> |
120 | 87 | <configuration>
|
121 | 88 | <autoVersionSubmodules>true</autoVersionSubmodules>
|
122 | 89 | <useReleaseProfile>false</useReleaseProfile>
|
123 | 90 | <releaseProfiles>release</releaseProfiles>
|
124 | 91 | <goals>deploy</goals>
|
125 | 92 | </configuration>
|
126 | 93 | </plugin>
|
127 |
| - |
128 |
| - <plugin> |
129 |
| - <groupId>org.eclipse.jetty</groupId> |
130 |
| - <artifactId>jetty-maven-plugin</artifactId> |
131 |
| - <version>11.0.15</version> |
132 |
| - <configuration> |
133 |
| - <scan>-1</scan> |
134 |
| - <!-- Use test scope because the UI/test classes are in |
135 |
| - the test package. --> |
136 |
| - <useTestScope>true</useTestScope> |
137 |
| - <supportedPackagings> |
138 |
| - <supportedPackaging>jar</supportedPackaging> |
139 |
| - </supportedPackagings> |
140 |
| - </configuration> |
141 |
| - </plugin> |
142 | 94 | </plugins>
|
143 | 95 | </build>
|
144 | 96 |
|
|
0 commit comments