|
5 | 5 |
|
6 | 6 | <groupId>com.github.plexpt</groupId> |
7 | 7 | <artifactId>chatgpt</artifactId> |
8 | | - <version>1.2.0</version> |
9 | | - <name>chatgpt-java</name> |
10 | | - <description>chatgpt-java</description> |
11 | | - |
12 | | - <url>https://github.com/PlexPt/chatgpt-java</url> |
| 8 | + <version>4.0.1</version> |
| 9 | + <name>chatgpt</name> |
| 10 | + <description>ChatGPT4.0、 ChatGPT Java SDK.</description> |
| 11 | + <url>https://chat.plexpt.com</url> |
13 | 12 |
|
14 | 13 | <issueManagement> |
15 | 14 | <system>Github Issue</system> |
|
29 | 28 | </developer> |
30 | 29 | </developers> |
31 | 30 |
|
| 31 | + |
32 | 32 | <scm> |
33 | | - < connection>scm: [email protected]:plexpt/ pt-tooki.git</ connection> |
34 | | - < developerConnection>scm: [email protected]:plexpt/ pt-tooki.git</ developerConnection> |
35 | | - < url> [email protected]:plexpt/ pt-tooki.git</ url> |
| 33 | + < connection>scm: [email protected]:plexpt/ chatgpt-java.git</ connection> |
| 34 | + < developerConnection>scm: [email protected]:plexpt/ chatgpt-java.git</ developerConnection> |
| 35 | + < url> [email protected]:plexpt/ chatgpt-java.git</ url> |
36 | 36 | </scm> |
37 | 37 |
|
| 38 | + |
38 | 39 | <properties> |
39 | 40 | <java.version>1.8</java.version> |
40 | 41 | <project.build.sourceEncoding>utf-8</project.build.sourceEncoding> |
|
45 | 46 | <maven.compiler.source>1.8</maven.compiler.source> |
46 | 47 | <maven.compiler.target>1.8</maven.compiler.target> |
47 | 48 |
|
48 | | - <!-- versions --> |
49 | 49 | <compile.version>8</compile.version> |
| 50 | + |
| 51 | + <retrofit2.version>2.9.0</retrofit2.version> |
| 52 | + <slf4j.version>2.0.7</slf4j.version> |
| 53 | + <logback.version>1.4.6</logback.version> |
50 | 54 | </properties> |
| 55 | + |
51 | 56 | <dependencies> |
52 | 57 |
|
53 | 58 | <dependency> |
54 | 59 | <groupId>org.projectlombok</groupId> |
55 | 60 | <artifactId>lombok</artifactId> |
56 | 61 | <version>1.18.26</version> |
| 62 | + <scope>compile</scope> |
57 | 63 | <optional>true</optional> |
58 | 64 | </dependency> |
| 65 | + <dependency> |
| 66 | + <groupId>org.slf4j</groupId> |
| 67 | + <artifactId>slf4j-api</artifactId> |
| 68 | + <version>${slf4j.version}</version> |
| 69 | + </dependency> |
| 70 | + <dependency> |
| 71 | + <groupId>ch.qos.logback</groupId> |
| 72 | + <artifactId>logback-core</artifactId> |
| 73 | + <version>${logback.version}</version> |
| 74 | + </dependency> |
59 | 75 |
|
| 76 | + <!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic --> |
60 | 77 | <dependency> |
61 | | - <groupId>net.dreamlu</groupId> |
62 | | - <artifactId>mica-http</artifactId> |
63 | | - <version>2.7.6</version> |
| 78 | + <groupId>ch.qos.logback</groupId> |
| 79 | + <artifactId>logback-classic</artifactId> |
| 80 | + <version>${logback.version}</version> |
64 | 81 | </dependency> |
65 | | - <!-- <dependency>--> |
66 | | - <!-- <groupId>com.google.code.gson</groupId>--> |
67 | | - <!-- <artifactId>gson</artifactId>--> |
68 | | - <!-- <version>2.9.1</version>--> |
69 | | - <!-- </dependency>--> |
| 82 | + |
70 | 83 | <dependency> |
71 | | - <groupId>com.alibaba.fastjson2</groupId> |
72 | | - <artifactId>fastjson2</artifactId> |
73 | | - <version>2.0.23</version> |
| 84 | + <groupId>org.springframework</groupId> |
| 85 | + <artifactId>spring-webmvc</artifactId> |
| 86 | + <version>5.3.25</version> |
| 87 | + <optional>true</optional> |
74 | 88 | </dependency> |
75 | | - <!-- <dependency>--> |
76 | | - <!-- <groupId>com.squareup.okhttp3</groupId>--> |
77 | | - <!-- <artifactId>okhttp</artifactId>--> |
78 | | - <!-- <version>3.14.9</version>--> |
79 | | - <!-- </dependency>--> |
80 | | - <!-- <dependency>--> |
81 | | - <!-- <groupId>com.google.guava</groupId>--> |
82 | | - <!-- <artifactId>guava</artifactId>--> |
83 | | - <!-- <version>31.1-jre</version>--> |
84 | | - <!-- </dependency>--> |
| 89 | + |
85 | 90 | <dependency> |
86 | | - <groupId>cn.hutool</groupId> |
87 | | - <artifactId>hutool-core</artifactId> |
88 | | - <version>5.8.12</version> |
| 91 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 92 | + <artifactId>jackson-databind</artifactId> |
| 93 | + <version>2.13.3</version> |
89 | 94 | </dependency> |
| 95 | + |
90 | 96 | <dependency> |
91 | 97 | <groupId>cn.hutool</groupId> |
92 | | - <artifactId>hutool-http</artifactId> |
| 98 | + <artifactId>hutool-all</artifactId> |
93 | 99 | <version>5.8.12</version> |
94 | 100 | </dependency> |
95 | 101 |
|
| 102 | + <dependency> |
| 103 | + <groupId>com.alibaba</groupId> |
| 104 | + <artifactId>fastjson</artifactId> |
| 105 | + <version>2.0.23</version> |
| 106 | + </dependency> |
| 107 | + <dependency> |
| 108 | + <groupId>com.squareup.okhttp3</groupId> |
| 109 | + <artifactId>okhttp-sse</artifactId> |
| 110 | + <version>3.14.9</version> |
| 111 | + </dependency> |
| 112 | + <dependency> |
| 113 | + <groupId>com.squareup.okhttp3</groupId> |
| 114 | + <artifactId>logging-interceptor</artifactId> |
| 115 | + <version>3.14.9</version> |
| 116 | + </dependency> |
| 117 | + <dependency> |
| 118 | + <groupId>com.squareup.retrofit2</groupId> |
| 119 | + <artifactId>retrofit</artifactId> |
| 120 | + <version>${retrofit2.version}</version> |
| 121 | + </dependency> |
| 122 | + <dependency> |
| 123 | + <groupId>com.squareup.retrofit2</groupId> |
| 124 | + <artifactId>converter-jackson</artifactId> |
| 125 | + <version>${retrofit2.version}</version> |
| 126 | + </dependency> |
| 127 | + <dependency> |
| 128 | + <groupId>com.squareup.retrofit2</groupId> |
| 129 | + <artifactId>adapter-rxjava2</artifactId> |
| 130 | + <version>${retrofit2.version}</version> |
| 131 | + </dependency> |
| 132 | + <dependency> |
| 133 | + <groupId>junit</groupId> |
| 134 | + <artifactId>junit</artifactId> |
| 135 | + <version>4.13.2</version> |
| 136 | + <scope>test</scope> |
| 137 | + </dependency> |
| 138 | + <dependency> |
| 139 | + <groupId>org.jetbrains</groupId> |
| 140 | + <artifactId>annotations</artifactId> |
| 141 | + <version>RELEASE</version> |
| 142 | + <scope>compile</scope> |
| 143 | + </dependency> |
96 | 144 | </dependencies> |
97 | 145 |
|
98 | 146 | <!-- 下面这个标签里的不能改 --> |
|
122 | 170 | <charset>UTF-8</charset> |
123 | 171 | <encoding>UTF-8</encoding> |
124 | 172 | <docencoding>UTF-8</docencoding> |
| 173 | + <additionalOptions>-Xdoclint:none</additionalOptions> |
| 174 | + <failOnError>false</failOnError> |
125 | 175 | </configuration> |
126 | 176 | <executions> |
127 | 177 | <execution> |
|
172 | 222 | <groupId>org.sonatype.plugins</groupId> |
173 | 223 | <artifactId>nexus-staging-maven-plugin</artifactId> |
174 | 224 | </plugin> |
175 | | - |
| 225 | + <plugin> |
| 226 | + <groupId>org.apache.maven.plugins</groupId> |
| 227 | + <artifactId>maven-surefire-plugin</artifactId> |
| 228 | + <version>2.12.4</version> |
| 229 | + <configuration> |
| 230 | + <skipTests>true</skipTests> |
| 231 | + </configuration> |
| 232 | + </plugin> |
176 | 233 | <!-- 使用maven-jar-plugin和maven-dependency-plugin插件打包 --> |
177 | 234 | <plugin> |
178 | 235 | <groupId>org.apache.maven.plugins</groupId> |
|
183 | 240 | <manifest> |
184 | 241 | <addClasspath>true</addClasspath> |
185 | 242 | <classpathPrefix>lib/</classpathPrefix> |
186 | | - <mainClass>com.github.plexpt.chatgpt.ChatGTP</mainClass> |
| 243 | + <mainClass>com.github.plexpt.chatgpt.ChatGPT</mainClass> |
187 | 244 | </manifest> |
188 | 245 | </archive> |
189 | 246 | </configuration> |
|
0 commit comments