diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index 7520ab1..7b3198d 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -28,4 +28,4 @@ jobs: - name: Publish to GitHub Packages env: TOKEN: ${{ secrets.TOKEN }} - run: ./gradlew publishReleasePublicationToGitHub --warning-mode all + run: ./gradlew publishToMavenLocal -x test --warning-mode all diff --git a/README.md b/README.md index 9b898c0..8e30b7e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,17 @@ 基于 Mozilla 的 [jchardet-1.1](http://jchardet.sourceforge.net) 进行易用性封装, 并打包发布到 [![jitpack](https://jitpack.io/v/gzu-liyujiang/CJKCharsetDetector.svg)](https://jitpack.io/#gzu-liyujiang/CJKCharsetDetector) - +```groovy + allprojects { + repositories { + maven { url 'https://jitpack.io' } + } + } + + dependencies { + implementation 'com.github.gzu-liyujiang:CJKCharsetDetector:latest.version' + } +``` ## License ```text