Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
155 lines (146 loc) · 6.4 KB
/
Copy pathpom.xml
File metadata and controls
155 lines (146 loc) · 6.4 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.keploy</groupId>
<artifactId>java-sdk</artifactId>
<version>2.0.6</version>
<packaging>pom</packaging>
<name>Keploy Java Coverage Agent</name>
<description>Java dynamic dedup coverage agent for Keploy Enterprise</description>
<url>https://github.com/keploy/java-sdk</url>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>sarthak160</id>
<name>Sarthak</name>
<email>sarthak@keploy.io</email>
</developer>
<developer>
<id>gouravkrosx</id>
<name>Gourav Kumar</name>
<email>gourav.kumar@keploy.io</email>
</developer>
</developers>
<scm>
<connection>scm:git@github.com:keploy/java-sdk.git</connection>
<developerConnection>scm:git@github.com:keploy/java-sdk.git</developerConnection>
<url>https://github.com/keploy/java-sdk.git</url>
</scm>
<modules>
<module>keploy-sdk</module>
</modules>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<pluginManagement>
<plugins>
<!-- The java8-api profile below works through the compiler plugin's
release parameter, which the plugin has since 3.6. Unpinned, the
version is whatever the running Maven binds by default: Maven 3.8
and older bind 3.1, which has no release parameter and ignores
maven.compiler.release without a warning, so a jar built there on
JDK 9 or later could carry calls that Java 8 lacks. 3.15.0 is the
version the Maven on CI's runners, which also build the release,
binds today. keploy-junit5's pom pins its own (3.13.0), and each
module's Java8ApiTest checks that its pin is 3.6 or later. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<!-- keploy-sdk runs on Java 8. Built on JDK 9 or later (the release is built
on JDK 17), javac checks the code against Java 8's API too (release 8),
not only Java 8's class file version: with source and target 1.8 alone
it compiles a call to an API Java 8 lacks, which fails only on Java 8,
at run time (NoSuchMethodError, NoClassDefFoundError). JDK 8's javac
has no release option, and needs none. -->
<profile>
<id>java8-api</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<properties>
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.10.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
<waitMaxTime>7200</waitMaxTime>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>