|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<project xmlns="http://maven.apache.org/POM/4.0.0" |
3 |
| - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | 4 |
|
6 | 5 | <modelVersion>4.0.0</modelVersion>
|
7 | 6 |
|
8 | 7 | <groupId>io.github.codeboyzhou</groupId>
|
9 | 8 | <artifactId>mcp-declarative-java-sdk</artifactId>
|
10 |
| - <version>0.1.0</version> |
| 9 | + <version>0.2.0</version> |
11 | 10 |
|
12 | 11 | <name>MCP Declarative Java SDK</name>
|
13 |
| - <description>Annotation-driven MCP (Model Context Protocol) Development with Java - Zero Spring Framework Dependencies</description> |
| 12 | + <description>Annotation-driven MCP (Model Context Protocol) Development with Java - No Spring Framework Required</description> |
14 | 13 | <url>https://github.com/codeboyzhou/mcp-declarative-java-sdk</url>
|
15 | 14 |
|
16 | 15 | <licenses>
|
|
45 | 44 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
46 | 45 | <!--==================== maven plugin versions ====================-->
|
47 | 46 | <central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
|
| 47 | + <jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version> |
48 | 48 | <maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
|
49 | 49 | <maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
|
50 | 50 | <maven-source-plugin.version>3.3.0</maven-source-plugin.version>
|
| 51 | + <maven-surefire-plugin.version>3.2.3</maven-surefire-plugin.version> |
| 52 | + <sortpom-maven-plugin.version>4.0.0</sortpom-maven-plugin.version> |
51 | 53 | <!--==================== dependency versions ======================-->
|
52 |
| - <mcp-sdk.version>0.8.1</mcp-sdk.version> |
53 | 54 | <jetty.version>12.0.18</jetty.version>
|
| 55 | + <junit5.version>5.10.2</junit5.version> |
| 56 | + <logback.version>1.5.18</logback.version> |
| 57 | + <mcp-sdk.version>0.9.0</mcp-sdk.version> |
54 | 58 | <reflections.version>0.10.2</reflections.version>
|
55 | 59 | </properties>
|
56 | 60 |
|
57 | 61 | <dependencyManagement>
|
58 | 62 | <dependencies>
|
| 63 | + <!-- Note: local installation is required if the mcp-sdk.version is SNAPSHOT --> |
59 | 64 | <dependency>
|
60 | 65 | <groupId>io.modelcontextprotocol.sdk</groupId>
|
61 | 66 | <artifactId>mcp-bom</artifactId>
|
62 | 67 | <version>${mcp-sdk.version}</version>
|
63 |
| - <scope>import</scope> |
64 | 68 | <type>pom</type>
|
| 69 | + <scope>import</scope> |
65 | 70 | </dependency>
|
66 | 71 | </dependencies>
|
67 | 72 | </dependencyManagement>
|
68 | 73 |
|
69 | 74 | <dependencies>
|
| 75 | + <dependency> |
| 76 | + <groupId>ch.qos.logback</groupId> |
| 77 | + <artifactId>logback-classic</artifactId> |
| 78 | + <version>${logback.version}</version> |
| 79 | + <scope>test</scope> |
| 80 | + </dependency> |
70 | 81 | <dependency>
|
71 | 82 | <groupId>io.modelcontextprotocol.sdk</groupId>
|
72 | 83 | <artifactId>mcp</artifactId>
|
|
76 | 87 | <artifactId>jetty-ee10-servlet</artifactId>
|
77 | 88 | <version>${jetty.version}</version>
|
78 | 89 | </dependency>
|
| 90 | + <dependency> |
| 91 | + <groupId>org.junit.jupiter</groupId> |
| 92 | + <artifactId>junit-jupiter</artifactId> |
| 93 | + <version>${junit5.version}</version> |
| 94 | + <scope>test</scope> |
| 95 | + </dependency> |
79 | 96 | <dependency>
|
80 | 97 | <groupId>org.reflections</groupId>
|
81 | 98 | <artifactId>reflections</artifactId>
|
|
85 | 102 |
|
86 | 103 | <build>
|
87 | 104 | <plugins>
|
| 105 | + <plugin> |
| 106 | + <groupId>com.github.ekryd.sortpom</groupId> |
| 107 | + <artifactId>sortpom-maven-plugin</artifactId> |
| 108 | + <version>${sortpom-maven-plugin.version}</version> |
| 109 | + <configuration> |
| 110 | + <nrOfIndentSpace>4</nrOfIndentSpace> |
| 111 | + <createBackupFile>false</createBackupFile> |
| 112 | + <indentAttribute>schemaLocation</indentAttribute> |
| 113 | + <sortModules>true</sortModules> |
| 114 | + <sortPlugins>groupId,artifactId</sortPlugins> |
| 115 | + <sortDependencies>groupId,artifactId</sortDependencies> |
| 116 | + <sortDependencyManagement>groupId,artifactId</sortDependencyManagement> |
| 117 | + </configuration> |
| 118 | + <executions> |
| 119 | + <execution> |
| 120 | + <goals> |
| 121 | + <goal>sort</goal> |
| 122 | + </goals> |
| 123 | + </execution> |
| 124 | + </executions> |
| 125 | + </plugin> |
88 | 126 | <plugin>
|
89 | 127 | <groupId>org.apache.maven.plugins</groupId>
|
90 | 128 | <artifactId>maven-gpg-plugin</artifactId>
|
91 | 129 | <version>${maven-gpg-plugin.version}</version>
|
92 | 130 | <executions>
|
93 | 131 | <execution>
|
94 | 132 | <id>sign-artifacts</id>
|
95 |
| - <phase>verify</phase> |
96 | 133 | <goals>
|
97 | 134 | <goal>sign</goal>
|
98 | 135 | </goals>
|
| 136 | + <phase>verify</phase> |
99 | 137 | </execution>
|
100 | 138 | </executions>
|
101 | 139 | </plugin>
|
|
125 | 163 | </execution>
|
126 | 164 | </executions>
|
127 | 165 | </plugin>
|
| 166 | + <plugin> |
| 167 | + <groupId>org.apache.maven.plugins</groupId> |
| 168 | + <artifactId>maven-surefire-plugin</artifactId> |
| 169 | + <version>${maven-surefire-plugin.version}</version> |
| 170 | + <configuration> |
| 171 | + <!--suppress UnresolvedMavenProperty for IntelliJ IDEA--> |
| 172 | + <argLine>${jacoco.agent.argLine}</argLine> |
| 173 | + </configuration> |
| 174 | + </plugin> |
| 175 | + <plugin> |
| 176 | + <groupId>org.jacoco</groupId> |
| 177 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 178 | + <version>${jacoco-maven-plugin.version}</version> |
| 179 | + <executions> |
| 180 | + <execution> |
| 181 | + <id>pre-unit-test</id> |
| 182 | + <goals> |
| 183 | + <goal>prepare-agent</goal> |
| 184 | + </goals> |
| 185 | + <configuration> |
| 186 | + <propertyName>jacoco.agent.argLine</propertyName> |
| 187 | + </configuration> |
| 188 | + </execution> |
| 189 | + <execution> |
| 190 | + <id>post-unit-test</id> |
| 191 | + <goals> |
| 192 | + <goal>report</goal> |
| 193 | + </goals> |
| 194 | + <phase>test</phase> |
| 195 | + <configuration> |
| 196 | + <outputDirectory>${project.build.directory}/unit-test-report</outputDirectory> |
| 197 | + </configuration> |
| 198 | + </execution> |
| 199 | + </executions> |
| 200 | + </plugin> |
128 | 201 | <plugin>
|
129 | 202 | <groupId>org.sonatype.central</groupId>
|
130 | 203 | <artifactId>central-publishing-maven-plugin</artifactId>
|
|
0 commit comments