Skip to content

Commit 94d1715

Browse files
build(spring-boot-example): update compiler settings and add snapshot repo
1 parent 11c8aff commit 94d1715

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

examples/example-springboot/pom.xml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
<properties>
2121
<java.version>21</java.version>
22+
<maven.compiler.source>21</maven.compiler.source>
23+
<maven.compiler.target>21</maven.compiler.target>
24+
<maven.compiler.release>21</maven.compiler.release>
25+
26+
<!-- Logdash SDK Version -->
2227
<logdash-sdk.version>0.2.0-SNAPSHOT</logdash-sdk.version>
2328
</properties>
2429

@@ -48,6 +53,22 @@
4853
</dependency>
4954
</dependencies>
5055

56+
<repositories>
57+
<!-- Maven Central Snapshots -->
58+
<repository>
59+
<releases>
60+
<enabled>false</enabled>
61+
</releases>
62+
<snapshots>
63+
<enabled>true</enabled>
64+
<updatePolicy>interval:60</updatePolicy>
65+
</snapshots>
66+
<id>maven-central-snapshots</id>
67+
<name>Maven Central Snapshots</name>
68+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
69+
</repository>
70+
</repositories>
71+
5172
<build>
5273
<plugins>
5374
<plugin>
@@ -57,6 +78,71 @@
5778
<mainClass>io.logdash.example.SpringBootExampleApplication</mainClass>
5879
</configuration>
5980
</plugin>
81+
82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-compiler-plugin</artifactId>
85+
<configuration>
86+
<release>21</release>
87+
<compilerArgs>
88+
<arg>-parameters</arg>
89+
<arg>-Xlint:unchecked</arg>
90+
<arg>-Xlint:deprecation</arg>
91+
</compilerArgs>
92+
</configuration>
93+
</plugin>
94+
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-help-plugin</artifactId>
98+
<version>3.5.1</version>
99+
</plugin>
60100
</plugins>
61101
</build>
102+
103+
<profiles>
104+
<profile>
105+
<id>local-dev</id>
106+
<activation>
107+
<activeByDefault>true</activeByDefault>
108+
</activation>
109+
<repositories>
110+
<repository>
111+
<snapshots>
112+
<updatePolicy>never</updatePolicy>
113+
</snapshots>
114+
<id>maven-central-snapshots</id>
115+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
116+
</repository>
117+
</repositories>
118+
</profile>
119+
120+
<profile>
121+
<id>force-remote</id>
122+
<build>
123+
<plugins>
124+
<plugin>
125+
<groupId>org.apache.maven.plugins</groupId>
126+
<artifactId>maven-dependency-plugin</artifactId>
127+
<executions>
128+
<execution>
129+
<id>purge-local-logdash</id>
130+
<goals>
131+
<goal>purge-local-repository</goal>
132+
</goals>
133+
<phase>initialize</phase>
134+
<configuration>
135+
<includes>
136+
<include>io.logdash:logdash</include>
137+
</includes>
138+
<snapshotsOnly>true</snapshotsOnly>
139+
</configuration>
140+
</execution>
141+
</executions>
142+
</plugin>
143+
</plugins>
144+
</build>
145+
</profile>
146+
</profiles>
147+
62148
</project>

0 commit comments

Comments
 (0)