Skip to content

Commit c4c1394

Browse files
committed
ci: compile examples by default
1 parent b51a79f commit c4c1394

2 files changed

Lines changed: 21 additions & 41 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ jobs:
4444
java-version: ${{ matrix.java }}
4545
- name: Build with Maven
4646
run: mvn -B package --file pom.xml
47-
- name: Compile examples
48-
run: mvn -B compile -P compile-examples --file pom.xml
4947
- name: Upload code coverage
5048
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
5149
with:

‎pom.xml‎

Lines changed: 21 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,28 @@
141141
<artifactId>maven-compiler-plugin</artifactId>
142142
<version>3.15.0</version>
143143
<configuration>
144-
<source>9</source>
145-
<target>9</target>
144+
<release>9</release>
146145
</configuration>
147146
</plugin>
147+
<plugin>
148+
<groupId>org.codehaus.mojo</groupId>
149+
<artifactId>build-helper-maven-plugin</artifactId>
150+
<version>3.6.0</version>
151+
<executions>
152+
<execution>
153+
<id>add-examples-source</id>
154+
<phase>generate-sources</phase>
155+
<goals>
156+
<goal>add-source</goal>
157+
</goals>
158+
<configuration>
159+
<sources>
160+
<source>${project.basedir}/examples</source>
161+
</sources>
162+
</configuration>
163+
</execution>
164+
</executions>
165+
</plugin>
148166
<plugin>
149167
<groupId>org.apache.maven.plugins</groupId>
150168
<artifactId>maven-surefire-plugin</artifactId>
@@ -174,8 +192,7 @@
174192
<artifactId>maven-compiler-plugin</artifactId>
175193
<version>3.15.0</version>
176194
<configuration>
177-
<source>9</source>
178-
<target>9</target>
195+
<release>9</release>
179196
</configuration>
180197
</plugin>
181198
<plugin>
@@ -268,41 +285,6 @@
268285
</plugins>
269286
</build>
270287
</profile>
271-
<profile>
272-
<id>compile-examples</id>
273-
<build>
274-
<plugins>
275-
<plugin>
276-
<groupId>org.apache.maven.plugins</groupId>
277-
<artifactId>maven-compiler-plugin</artifactId>
278-
<version>3.15.0</version>
279-
<configuration>
280-
<source>9</source>
281-
<target>9</target>
282-
</configuration>
283-
</plugin>
284-
<plugin>
285-
<groupId>org.codehaus.mojo</groupId>
286-
<artifactId>build-helper-maven-plugin</artifactId>
287-
<version>3.6.0</version>
288-
<executions>
289-
<execution>
290-
<id>add-examples-source</id>
291-
<phase>generate-sources</phase>
292-
<goals>
293-
<goal>add-source</goal>
294-
</goals>
295-
<configuration>
296-
<sources>
297-
<source>${project.basedir}/examples</source>
298-
</sources>
299-
</configuration>
300-
</execution>
301-
</executions>
302-
</plugin>
303-
</plugins>
304-
</build>
305-
</profile>
306288
</profiles>
307289

308290
<distributionManagement>

0 commit comments

Comments
 (0)