diff --git a/README.md b/README.md index adda723..3c22213 100644 --- a/README.md +++ b/README.md @@ -58,23 +58,18 @@ JDK版本:1.8及以上,推荐JDK 11及以上 ## 使用说明 -### 在项目中引用mywust-core - -目前该项目发布在Github Package上,如遇网络问题请自备工具解决 - -关于如何在自己的项目中引用: +> 文档?什么文档?不知道不知道 +> 以后再说 -- Maven项目请参阅:[使用 Apache Maven 注册表](https://docs.github.com/zh/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry) - -- Gradle项目请参阅:[使用 Gradle 注册表](https://docs.github.com/zh/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry) +### 在项目中引用mywust-core -配置好后,直接在`pom.xml`中引用即可: +在`pom.xml`中引用核心即可: ```xml cn.wustlinghang.mywust mywust-core - 0.0.1-fixed + 0.0.2-beta ``` diff --git a/mywust-common/pom.xml b/mywust-common/pom.xml index 1408573..7b74735 100644 --- a/mywust-common/pom.xml +++ b/mywust-common/pom.xml @@ -11,6 +11,36 @@ mywust-common + ${project.artifactId} + The API encapsulations of WUST's official web service. Module `${project.artifactId}` + https://github.com/LingHangStudio/mywust + + + https://github.com/LingHangStudio/mywust + scm:git:https://github.com/LingHangStudio/mywust.git + scm:git:https://github.com/LingHangStudio/mywust.git + ${project.parent.version} + + + + + lensfrex + lensfrex + lensferno@outlook.com + https://github.com/lensferno + wustlinghang + https://github.com/LingHangStudio + +8 + + + + + + MIT License + https://mit-license.org/ + + + 1.8 1.8 diff --git a/mywust-core/pom.xml b/mywust-core/pom.xml index b235974..b753065 100644 --- a/mywust-core/pom.xml +++ b/mywust-core/pom.xml @@ -10,6 +10,37 @@ 4.0.0 mywust-core + + ${project.artifactId} + The API encapsulations of WUST's official web service. Module `${project.artifactId}` + https://github.com/LingHangStudio/mywust + + + https://github.com/LingHangStudio/mywust + scm:git:https://github.com/LingHangStudio/mywust.git + scm:git:https://github.com/LingHangStudio/mywust.git + ${project.parent.version} + + + + + lensfrex + lensfrex + lensferno@outlook.com + https://github.com/lensferno + wustlinghang + https://github.com/LingHangStudio + +8 + + + + + + MIT License + https://mit-license.org/ + + + cn.wustlinghang.mywust @@ -69,7 +100,7 @@ 2.0.3 1.15.3 - 5.8.12 + 5.8.22 2.15.2 \ No newline at end of file diff --git a/mywust-network-httpclient/pom.xml b/mywust-network-httpclient/pom.xml index b8a3b83..f9f5983 100644 --- a/mywust-network-httpclient/pom.xml +++ b/mywust-network-httpclient/pom.xml @@ -10,17 +10,40 @@ mywust-network-httpclient + ${project.artifactId} + The API encapsulations of WUST's official web service. Module `${project.artifactId}` + https://github.com/LingHangStudio/mywust + + + https://github.com/LingHangStudio/mywust + scm:git:https://github.com/LingHangStudio/mywust.git + scm:git:https://github.com/LingHangStudio/mywust.git + ${project.parent.version} + + + + + lensfrex + lensfrex + lensferno@outlook.com + https://github.com/lensferno + wustlinghang + https://github.com/LingHangStudio + +8 + + + + + + MIT License + https://mit-license.org/ + + + 1.8 1.8 UTF-8 - - - github - GitHub LingHangStudio Apache Maven Packages - https://maven.pkg.github.com/LingHangStudio/mywust - - \ No newline at end of file diff --git a/mywust-network-okhttp/pom.xml b/mywust-network-okhttp/pom.xml index cea2204..34f5247 100644 --- a/mywust-network-okhttp/pom.xml +++ b/mywust-network-okhttp/pom.xml @@ -11,12 +11,42 @@ 4.0.0 mywust-network-okhttp + ${project.artifactId} + The API encapsulations of WUST's official web service. Module `${project.artifactId}` + https://github.com/LingHangStudio/mywust + + + https://github.com/LingHangStudio/mywust + scm:git:https://github.com/LingHangStudio/mywust.git + scm:git:https://github.com/LingHangStudio/mywust.git + ${project.parent.version} + + + + + lensfrex + lensfrex + lensferno@outlook.com + https://github.com/lensferno + wustlinghang + https://github.com/LingHangStudio + +8 + + + + + + MIT License + https://mit-license.org/ + + + 1.8 1.8 UTF-8 - 3.14.9 + 4.11.0 1.7.36 @@ -46,11 +76,4 @@ - - - github - GitHub LingHangStudio Apache Maven Packages - https://maven.pkg.github.com/LingHangStudio/mywust - - \ No newline at end of file diff --git a/mywust-network-okhttp/src/main/java/cn/wustlinghang/mywust/network/okhttp/SimpleOkhttpRequester.java b/mywust-network-okhttp/src/main/java/cn/wustlinghang/mywust/network/okhttp/SimpleOkhttpRequester.java index 194be06..08f8a7b 100644 --- a/mywust-network-okhttp/src/main/java/cn/wustlinghang/mywust/network/okhttp/SimpleOkhttpRequester.java +++ b/mywust-network-okhttp/src/main/java/cn/wustlinghang/mywust/network/okhttp/SimpleOkhttpRequester.java @@ -252,14 +252,14 @@ public class SimpleOkhttpRequester implements Requester { requestBuilder.get(); } else if (requestMethod == RequestMethod.POST) { - requestBuilder.post(RequestBody.create(this.getMediaType(httpRequest), data)); + requestBuilder.post(RequestBody.create(data, this.getMediaType(httpRequest))); } else if (requestMethod == RequestMethod.PUT) { - requestBuilder.put(RequestBody.create(this.getMediaType(httpRequest), data)); + requestBuilder.put(RequestBody.create(data, this.getMediaType(httpRequest))); } else if (requestMethod == RequestMethod.DELETE) { if (httpRequest.getData() != null) { - requestBuilder.delete(RequestBody.create(this.getMediaType(httpRequest), data)); + requestBuilder.delete(RequestBody.create(data, this.getMediaType(httpRequest))); } else { requestBuilder.delete(); } diff --git a/mywust-network/pom.xml b/mywust-network/pom.xml index 252f3ba..9a552f5 100644 --- a/mywust-network/pom.xml +++ b/mywust-network/pom.xml @@ -11,6 +11,36 @@ mywust-network + ${project.artifactId} + The API encapsulations of WUST's official web service. Module `${project.artifactId}` + https://github.com/LingHangStudio/mywust + + + https://github.com/LingHangStudio/mywust + scm:git:https://github.com/LingHangStudio/mywust.git + scm:git:https://github.com/LingHangStudio/mywust.git + ${project.parent.version} + + + + + lensfrex + lensfrex + lensferno@outlook.com + https://github.com/lensferno + wustlinghang + https://github.com/LingHangStudio + +8 + + + + + + MIT License + https://mit-license.org/ + + + 1.8 1.8 diff --git a/mywust-test/pom.xml b/mywust-test/pom.xml index c7fb507..7b6a93d 100644 --- a/mywust-test/pom.xml +++ b/mywust-test/pom.xml @@ -12,6 +12,36 @@ mywust-test + ${project.artifactId} + The API encapsulations of WUST's official web service. Module `${project.artifactId}` + https://github.com/LingHangStudio/mywust + + + https://github.com/LingHangStudio/mywust + scm:git:https://github.com/LingHangStudio/mywust.git + scm:git:https://github.com/LingHangStudio/mywust.git + ${project.parent.version} + + + + + lensfrex + lensfrex + lensferno@outlook.com + https://github.com/lensferno + wustlinghang + https://github.com/LingHangStudio + +8 + + + + + + MIT License + https://mit-license.org/ + + + cn.wustlinghang.mywust @@ -58,7 +88,7 @@ org.junit.jupiter junit-jupiter - RELEASE + 5.10.0 test diff --git a/mywust-util/pom.xml b/mywust-util/pom.xml index 7f0ea53..bb8304c 100644 --- a/mywust-util/pom.xml +++ b/mywust-util/pom.xml @@ -11,12 +11,43 @@ mywust-util + ${project.artifactId} + The API encapsulations of WUST's official web service. Module `${project.artifactId}` + https://github.com/LingHangStudio/mywust + + + https://github.com/LingHangStudio/mywust + scm:git:https://github.com/LingHangStudio/mywust.git + scm:git:https://github.com/LingHangStudio/mywust.git + ${project.parent.version} + + + + + lensfrex + lensfrex + lensferno@outlook.com + https://github.com/lensferno + wustlinghang + https://github.com/LingHangStudio + +8 + + + + + + MIT License + https://mit-license.org/ + + + 1.8 8 UTF-8 - 5.8.12 + 5.8.22 + @@ -30,7 +61,7 @@ com.google.guava guava - 31.1-jre + 32.1.2-jre diff --git a/pom.xml b/pom.xml index 93485c9..8db4a9c 100644 --- a/pom.xml +++ b/pom.xml @@ -9,6 +9,36 @@ pom ${revision} + mywust + The API encapsulations of WUST's official web service. + https://github.com/LingHangStudio/mywust + + + https://github.com/LingHangStudio/mywust + scm:git:https://github.com/LingHangStudio/mywust.git + scm:git:https://github.com/LingHangStudio/mywust.git + ${revision} + + + + + lensfrex + lensfrex + lensferno@outlook.com + https://github.com/lensferno + wustlinghang + https://github.com/LingHangStudio + +8 + + + + + + MIT License + https://mit-license.org/ + + + mywust-core mywust-common @@ -36,44 +66,34 @@ 1.8 8 UTF-8 + + 1.5.0 + 3.3.0 + 3.6.0 + 3.1.0 + 3.1.1 + + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots + - github - GitHub LingHangStudio Apache Maven Packages - https://maven.pkg.github.com/LingHangStudio/mywust + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 3.1.0 - - org.codehaus.mojo flatten-maven-plugin - 1.3.0 + ${flatten-maven-plugin.version} + ossrh @@ -96,4 +116,69 @@ + + + + release + + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin.version} + + + attach-sources + package + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + none + UTF-8 + UTF-8 + UTF-8 + + + + attach-javadocs + + jar + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg-plugin.version} + + + sign-artifacts + verify + + sign + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + ${maven-deploy-plugin.version} + + + + + \ No newline at end of file