Skip to content

Commit a384b20

Browse files
javier-godoyscardanzan
authored andcommitted
feat: add annotation processor
1 parent 6b78a71 commit a384b20

4 files changed

Lines changed: 439 additions & 0 deletions

File tree

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
<modules>
2626
<module>base</module>
27+
<module>processor</module>
2728
</modules>
2829

2930
</project>

processor/pom.xml

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<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">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.flowingcode.vaadin.addons.demo</groupId>
7+
<artifactId>commons-demo-processor</artifactId>
8+
<version>5.3.0-SNAPSHOT</version>
9+
10+
<name>Commons Demo Processor</name>
11+
<description>Annotation processor for Commons Demo: copies @DemoSource-referenced files into the class output</description>
12+
<url>https://www.flowingcode.com/en/open-source/</url>
13+
14+
<developers>
15+
<developer>
16+
<id>flowingcode</id>
17+
<organization>Flowing Code</organization>
18+
<organizationUrl>https://www.flowingcode.com</organizationUrl>
19+
</developer>
20+
</developers>
21+
22+
<properties>
23+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24+
<maven.compiler.source>17</maven.compiler.source>
25+
<maven.compiler.target>17</maven.compiler.target>
26+
<commons-demo.version>5.3.0-SNAPSHOT</commons-demo.version>
27+
</properties>
28+
29+
<organization>
30+
<name>Flowing Code</name>
31+
<url>https://www.flowingcode.com</url>
32+
</organization>
33+
<inceptionYear>2020</inceptionYear>
34+
<licenses>
35+
<license>
36+
<name>Apache 2</name>
37+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
38+
<distribution>repo</distribution>
39+
</license>
40+
</licenses>
41+
42+
<scm>
43+
<url>https://github.com/FlowingCode/CommonsDemo</url>
44+
<connection>scm:git:git://github.com/FlowingCode/CommonsDemo.git</connection>
45+
<developerConnection>scm:git:ssh://git@github.com:/FlowingCode/CommonsDemo.git</developerConnection>
46+
<tag>master</tag>
47+
</scm>
48+
49+
<dependencies>
50+
<dependency>
51+
<groupId>com.flowingcode.vaadin.addons.demo</groupId>
52+
<artifactId>commons-demo</artifactId>
53+
<version>${commons-demo.version}</version>
54+
<scope>provided</scope>
55+
</dependency>
56+
</dependencies>
57+
58+
<build>
59+
<pluginManagement>
60+
<plugins>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-release-plugin</artifactId>
64+
<version>3.0.1</version>
65+
<configuration>
66+
<releaseProfiles>release</releaseProfiles>
67+
</configuration>
68+
</plugin>
69+
<plugin>
70+
<groupId>org.apache.maven.plugins</groupId>
71+
<artifactId>maven-deploy-plugin</artifactId>
72+
<version>2.8.2</version>
73+
</plugin>
74+
<plugin>
75+
<groupId>org.codehaus.mojo</groupId>
76+
<artifactId>license-maven-plugin</artifactId>
77+
<version>1.14</version>
78+
<configuration>
79+
<licenseName>apache_v2</licenseName>
80+
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
81+
</configuration>
82+
</plugin>
83+
</plugins>
84+
</pluginManagement>
85+
86+
<plugins>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-compiler-plugin</artifactId>
90+
<version>3.13.0</version>
91+
<configuration>
92+
<compilerArgs>
93+
<arg>-proc:none</arg>
94+
</compilerArgs>
95+
</configuration>
96+
</plugin>
97+
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
99+
<artifactId>maven-source-plugin</artifactId>
100+
<version>3.0.1</version>
101+
<executions>
102+
<execution>
103+
<id>attach-sources</id>
104+
<phase>package</phase>
105+
<goals>
106+
<goal>jar-no-fork</goal>
107+
</goals>
108+
</execution>
109+
</executions>
110+
</plugin>
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-javadoc-plugin</artifactId>
114+
<version>3.11.1</version>
115+
<executions>
116+
<execution>
117+
<id>attach-javadocs</id>
118+
<phase>package</phase>
119+
<goals>
120+
<goal>jar</goal>
121+
</goals>
122+
</execution>
123+
</executions>
124+
<configuration>
125+
<quiet>true</quiet>
126+
<doclint>none</doclint>
127+
<failOnWarnings>false</failOnWarnings>
128+
</configuration>
129+
</plugin>
130+
</plugins>
131+
</build>
132+
133+
<profiles>
134+
<profile>
135+
<id>gpg</id>
136+
<activation>
137+
<property>
138+
<name>env.MAVEN_GPG_PASSPHRASE</name>
139+
</property>
140+
</activation>
141+
<build>
142+
<plugins>
143+
<plugin>
144+
<groupId>org.apache.maven.plugins</groupId>
145+
<artifactId>maven-gpg-plugin</artifactId>
146+
<version>3.2.7</version>
147+
<executions>
148+
<execution>
149+
<id>sign-artifacts</id>
150+
<phase>verify</phase>
151+
<goals>
152+
<goal>sign</goal>
153+
</goals>
154+
</execution>
155+
</executions>
156+
</plugin>
157+
</plugins>
158+
</build>
159+
</profile>
160+
161+
<profile>
162+
<id>release</id>
163+
<build>
164+
<plugins>
165+
<plugin>
166+
<groupId>org.sonatype.central</groupId>
167+
<artifactId>central-publishing-maven-plugin</artifactId>
168+
<version>0.8.0</version>
169+
<extensions>true</extensions>
170+
</plugin>
171+
</plugins>
172+
</build>
173+
</profile>
174+
</profiles>
175+
176+
</project>

0 commit comments

Comments
 (0)