|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <parent> |
| 6 | + <groupId>org.springframework.boot</groupId> |
| 7 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 8 | + <version>3.4.6</version> |
| 9 | + <relativePath/> |
| 10 | + </parent> |
| 11 | + |
| 12 | + <groupId>io.logdash.example</groupId> |
| 13 | + <artifactId>springboot-example</artifactId> |
| 14 | + <version>0.2.0-SNAPSHOT</version> |
| 15 | + <packaging>jar</packaging> |
| 16 | + |
| 17 | + <name>Logdash Spring Boot Example</name> |
| 18 | + <description>Spring Boot application demonstrating Logdash Java SDK usage</description> |
| 19 | + |
| 20 | + <properties> |
| 21 | + <java.version>21</java.version> |
| 22 | + <maven.compiler.source>${java.version}</maven.compiler.source> |
| 23 | + <maven.compiler.target>${java.version}</maven.compiler.target> |
| 24 | + <maven.compiler.release>${java.version}</maven.compiler.release> |
| 25 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 26 | + |
| 27 | + <!-- Logdash SDK Version --> |
| 28 | + <logdash-sdk.version>0.2.0-SNAPSHOT</logdash-sdk.version> |
| 29 | + |
| 30 | + <!-- Plugin versions --> |
| 31 | + <maven-help-plugin.version>3.5.1</maven-help-plugin.version> |
| 32 | + </properties> |
| 33 | + |
| 34 | + <dependencies> |
| 35 | + <!-- Spring Boot Starters --> |
| 36 | + <dependency> |
| 37 | + <groupId>org.springframework.boot</groupId> |
| 38 | + <artifactId>spring-boot-starter-web</artifactId> |
| 39 | + </dependency> |
| 40 | + <dependency> |
| 41 | + <groupId>org.springframework.boot</groupId> |
| 42 | + <artifactId>spring-boot-starter-actuator</artifactId> |
| 43 | + </dependency> |
| 44 | + |
| 45 | + <!-- Logdash SDK --> |
| 46 | + <dependency> |
| 47 | + <groupId>io.logdash</groupId> |
| 48 | + <artifactId>logdash</artifactId> |
| 49 | + <version>${logdash-sdk.version}</version> |
| 50 | + </dependency> |
| 51 | + |
| 52 | + <!-- Test Dependencies --> |
| 53 | + <dependency> |
| 54 | + <groupId>org.springframework.boot</groupId> |
| 55 | + <artifactId>spring-boot-starter-test</artifactId> |
| 56 | + <scope>test</scope> |
| 57 | + </dependency> |
| 58 | + </dependencies> |
| 59 | + |
| 60 | + <repositories> |
| 61 | + <!-- Maven Central Snapshots --> |
| 62 | + <repository> |
| 63 | + <releases> |
| 64 | + <enabled>false</enabled> |
| 65 | + </releases> |
| 66 | + <snapshots> |
| 67 | + <enabled>true</enabled> |
| 68 | + <updatePolicy>interval:60</updatePolicy> |
| 69 | + </snapshots> |
| 70 | + <id>maven-central-snapshots</id> |
| 71 | + <name>Maven Central Snapshots</name> |
| 72 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 73 | + </repository> |
| 74 | + </repositories> |
| 75 | + |
| 76 | + <build> |
| 77 | + <plugins> |
| 78 | + <plugin> |
| 79 | + <groupId>org.springframework.boot</groupId> |
| 80 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 81 | + <configuration> |
| 82 | + <mainClass>io.logdash.example.SpringBootExampleApplication</mainClass> |
| 83 | + </configuration> |
| 84 | + </plugin> |
| 85 | + |
| 86 | + <!-- Compiler Plugin --> |
| 87 | + <plugin> |
| 88 | + <groupId>org.apache.maven.plugins</groupId> |
| 89 | + <artifactId>maven-compiler-plugin</artifactId> |
| 90 | + <version>${maven-compiler-plugin.version}</version> |
| 91 | + <configuration> |
| 92 | + <release>${java.version}</release> |
| 93 | + <compilerArgs> |
| 94 | + <arg>-parameters</arg> |
| 95 | + <arg>-Xlint:unchecked</arg> |
| 96 | + <arg>-Xlint:deprecation</arg> |
| 97 | + <arg>-Werror</arg> |
| 98 | + </compilerArgs> |
| 99 | + </configuration> |
| 100 | + </plugin> |
| 101 | + |
| 102 | + <plugin> |
| 103 | + <groupId>org.apache.maven.plugins</groupId> |
| 104 | + <artifactId>maven-help-plugin</artifactId> |
| 105 | + <version>${maven-help-plugin.version}</version> |
| 106 | + </plugin> |
| 107 | + </plugins> |
| 108 | + </build> |
| 109 | + |
| 110 | + <profiles> |
| 111 | + <profile> |
| 112 | + <id>local-dev</id> |
| 113 | + <activation> |
| 114 | + <activeByDefault>true</activeByDefault> |
| 115 | + </activation> |
| 116 | + <repositories> |
| 117 | + <repository> |
| 118 | + <snapshots> |
| 119 | + <updatePolicy>never</updatePolicy> |
| 120 | + </snapshots> |
| 121 | + <id>maven-central-snapshots</id> |
| 122 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 123 | + </repository> |
| 124 | + </repositories> |
| 125 | + </profile> |
| 126 | + |
| 127 | + <profile> |
| 128 | + <id>force-remote</id> |
| 129 | + <build> |
| 130 | + <plugins> |
| 131 | + <plugin> |
| 132 | + <groupId>org.apache.maven.plugins</groupId> |
| 133 | + <artifactId>maven-dependency-plugin</artifactId> |
| 134 | + <executions> |
| 135 | + <execution> |
| 136 | + <id>purge-local-logdash</id> |
| 137 | + <goals> |
| 138 | + <goal>purge-local-repository</goal> |
| 139 | + </goals> |
| 140 | + <phase>initialize</phase> |
| 141 | + <configuration> |
| 142 | + <includes> |
| 143 | + <include>io.logdash:logdash</include> |
| 144 | + </includes> |
| 145 | + <snapshotsOnly>true</snapshotsOnly> |
| 146 | + </configuration> |
| 147 | + </execution> |
| 148 | + </executions> |
| 149 | + </plugin> |
| 150 | + </plugins> |
| 151 | + </build> |
| 152 | + </profile> |
| 153 | + </profiles> |
| 154 | + |
| 155 | +</project> |
0 commit comments