Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ jobs:
- name: Restore verified third-party downloads
uses: actions/cache@v4
with:
path: |
.artifacts/jdtls-downloads
.artifacts/jdk-downloads
path: .artifacts/jdtls-downloads
key: third-party-${{ hashFiles('third_party/*/manifest.json') }}
- name: Build, verify and archive both architectures
run: |
Expand All @@ -76,7 +74,13 @@ jobs:
package=$(scripts/build-package.sh --arch "$arch")
scripts/archive-package.sh --package "$package" --arch "$arch"
done
- name: Verify native compiler settings and JARs with JDT
# The package ships no JDK; the integration tests run the tested JDT LS
# release on this one, as a user's JDK 21+ would.
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "21"
- name: Verify native compiler settings and JARs with the user's JDT LS
run: |
package=".artifacts/package/$(uname -m)/io.github.lithe-idea.java-support"
node scripts/compiler/test-live.mjs "$package"
Expand Down Expand Up @@ -118,18 +122,22 @@ jobs:
node-version: 22
- name: Install packaging tools
run: sudo apt-get update && sudo apt-get install -y zsh zip unzip
# The package ships no JDK; the integration tests run the tested JDT LS
# release on this one, as a user's JDK 21+ would.
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "21"
- name: Restore checksum-verified downloads
uses: actions/cache@v4
with:
path: |
.artifacts/jdtls-downloads
.artifacts/jdk-downloads
path: .artifacts/jdtls-downloads
key: linux-${{ matrix.arch }}-${{ hashFiles('third_party/*/manifest.json') }}
- name: Test the native backend
run: cargo test --workspace --locked
- name: Build and verify the archive
run: node scripts/package/build-linux.mjs "${{ matrix.arch }}"
- name: Start the packaged backend and language server
- name: Start the packaged backend and the user's language server
run: node scripts/package/smoke-linux.mjs dist/*-linux-${{ matrix.arch }}.zip
- uses: actions/upload-artifact@v4
with:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,22 @@ jobs:
node-version: 22
- name: Install packaging tools
run: sudo apt-get update && sudo apt-get install -y zsh zip unzip
# The package ships no JDK; the integration tests run the tested JDT LS
# release on this one, as a user's JDK 21+ would.
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "21"
- name: Restore checksum-verified downloads
uses: actions/cache@v4
with:
path: |
.artifacts/jdtls-downloads
.artifacts/jdk-downloads
path: .artifacts/jdtls-downloads
key: linux-${{ matrix.arch }}-${{ hashFiles('third_party/*/manifest.json') }}
- name: Test the native backend
run: cargo test --workspace --locked
- name: Build and verify the archive
run: node scripts/package/build-linux.mjs "${{ matrix.arch }}"
- name: Start the packaged backend and language server
- name: Start the packaged backend and the user's language server
run: node scripts/package/smoke-linux.mjs dist/*-linux-${{ matrix.arch }}.zip
- uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 迁移说明:Java 逻辑从 Lithe 主仓库移到本仓库

> 3.0.0 起插件包不再附带 JDT LS 和 JDK,改用用户自己的安装(`backend/src/jdtls.rs`);`scripts/prepare-jdk.sh`、
> `third_party/jdk/` 和 JDT 反编译补丁已删除。下文的打包与资源条目是迁移时的历史记录。

本文是 Java Support 插件(`io.github.lithe-idea.java-support`)从 Lithe 主仓库拆分出来的移植账本,回答四个问题:

1. 主仓库里的每个 Java 相关文件或符号,现在在本仓库的哪里,状态是什么。
Expand Down
9 changes: 4 additions & 5 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ is downloaded at build time from pinned sources and verified by SHA-256 (see
third_party/). Each component keeps its own license, and the license text is
copied into the package next to the component:

Eclipse JDT Language Server Eclipse Public License 2.0
https://download.eclipse.org/jdtls/
Project Lombok MIT License
https://projectlombok.org/
Microsoft java-debug Eclipse Public License 1.0
(vscode-java-debug) https://github.com/microsoft/java-debug
Microsoft vscode-java-test MIT License
(JUnit runner and plugin) https://github.com/microsoft/vscode-java-test
Eclipse Temurin JDK GNU General Public License v2 with the
Classpath Exception
https://adoptium.net/

The package does not include the Eclipse JDT Language Server or a Java
runtime. The plugin runs the JDT LS installation and the JDK the user installs
(https://download.eclipse.org/jdtls/, Eclipse Public License 2.0).

The icons java.svg and java_dark.svg in
io.github.lithe-idea.java-support/icons/ come from the JetBrains IntelliJ Platform
Expand Down
Loading
Loading