-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpom.xml
100 lines (94 loc) · 4.19 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.sentry.samples</groupId>
<artifactId>sentry-maven-plugin-example</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Sample Maven project using sentry-maven-plugin</name>
<url>http://maven.apache.org</url>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- <sentry.cli.debug>true</sentry.cli.debug>-->
</properties>
<build>
<!-- add this to your pom.xml vvv -->
<plugins>
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<!-- for showing debug output -->
<debug>false</debug>
<!-- for showing output of sentry-cli -->
<debugSentryCli>true</debugSentryCli>
<!-- download the latest sentry-cli and provide path to it here -->
<!-- download it here: https://github.com/getsentry/sentry-cli/releases -->
<!-- minimum required version is 2.17.3 -->
<!-- <sentryCliExecutablePath>/Users/adinauer/repos/sentry-cli/target/debug/sentry-cli</sentryCliExecutablePath>-->
<org>sentry-sdks</org>
<project>android-sagp-testing</project>
<!-- in case you're self hosting, provide the URL here -->
<!--<url>http://localhost:8000/</url>-->
<!-- provide your auth token via SENTRY_AUTH_TOKEN environment variable -->
<!-- you can find it in Sentry UI: Settings > Account > API > Auth Tokens -->
<authToken>${env.SENTRY_AUTH_TOKEN}</authToken>
<!-- Flag to skip Plugin execution -->
<skip>false</skip>
<skipSourceBundle>false</skipSourceBundle>
<skipAutoInstall>false</skipAutoInstall>
<skipTelemetry>false</skipTelemetry>
</configuration>
<executions>
<execution>
<goals>
<goal>uploadSourceBundle</goal>
<goal>reportDependencies</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- add this to your pom.xml ^^^ -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>
io.sentry.samples.maven.SampleApplication
</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>3.1.2</version>
</dependency>
</dependencies>
</project>