diff --git a/.github/mvn-settings.xml b/.github/mvn-settings.xml deleted file mode 100644 index 4a4c1419..00000000 --- a/.github/mvn-settings.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - github - ${env.GITHUB_ACTOR} - ${env.GITHUB_TOKEN} - - - \ No newline at end of file diff --git a/.github/workflows/java-test.yaml b/.github/workflows/java-test.yaml index b8fa77e5..a6743df3 100644 --- a/.github/workflows/java-test.yaml +++ b/.github/workflows/java-test.yaml @@ -107,6 +107,8 @@ jobs: with: distribution: 'temurin' java-version: '8' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file - name: Download windows x86_64 lib uses: actions/download-artifact@v3 @@ -156,8 +158,6 @@ jobs: -DskipTests=true \ -Dcargo-build.profile=release \ -DserverId=github \ - -s ../.github/mvn-settings.xml + -s $GITHUB_WORKSPACE/settings.xml env: - GITHUB_ACTOR: ${{ secrets.MAVEN_DEPLOY_USER }} - GITHUB_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }} - + GITHUB_TOKEN: ${{ github.token }} diff --git a/java/README.md b/java/README.md index 5ce6ebba..53399316 100644 --- a/java/README.md +++ b/java/README.md @@ -1,3 +1,29 @@ # KCL Artifact Library for Java -See [here](https://github.com/kcl-lang/kcl-java) for more information. +## Developing + +- Install `Java 8+` +- Install `cargo` and `Python` (for Rust code building) + +```shell +pnpm install +``` + +### Building + +```shell +make build +``` + +### Testing + +```shell +make test +``` + +### Format + +```shell +make fmt +``` +