|
19 | 19 |
|
20 | 20 | <properties> |
21 | 21 | <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 --> |
22 | 27 | <logdash-sdk.version>0.2.0-SNAPSHOT</logdash-sdk.version> |
23 | 28 | </properties> |
24 | 29 |
|
|
48 | 53 | </dependency> |
49 | 54 | </dependencies> |
50 | 55 |
|
| 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 | + |
51 | 72 | <build> |
52 | 73 | <plugins> |
53 | 74 | <plugin> |
|
57 | 78 | <mainClass>io.logdash.example.SpringBootExampleApplication</mainClass> |
58 | 79 | </configuration> |
59 | 80 | </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> |
60 | 100 | </plugins> |
61 | 101 | </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 | + |
62 | 148 | </project> |
0 commit comments