Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
"name": "Apache Lucene",
"service": "lucene",
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "25",
"installMaven": "false",
"installGradle": "false"
}
},
"customizations": {
"vscode": {
"extensions": [
"redhat.java",
"editorconfig.editorconfig"
],
"settings": {
"extensions.allowed": {
"vscjava.vscode-java-pack": false,
"vscjava.vscode-gradle": false,
"*": true
}
}
}
},
"updateContentCommand": "cd ${containerWorkspaceFolder} && rm -f .classpath && ./gradlew eclipse"
}
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"recommendations": [
"redhat.java",
"editorconfig.editorconfig",
"ast-grep.ast-grep-vscode"
"editorconfig.editorconfig"
],
"unwantedRecommendations": [
"vscjava.vscode-java-pack",
Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"java.server.launchMode": "Standard",
"java.import.gradle.enabled": false,
"java.import.maven.enabled": false,
"java.jdt.ls.lombokSupport.enabled": false,
"java.compile.nullAnalysis.mode": "disabled",
"java.completion.maxResults": 500,
"java.completion.favoriteStaticMembers": [ "none.*" ],
"java.inlayHints.parameterNames.enabled": "all",
"astGrep.configPath": "gradle/validation/ast-grep/sgconfig.yml"
"java.inlayHints.parameterTypes.enabled": true,
"java.inlayHints.variableTypes.enabled": true,
"redhat.telemetry.enabled": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ public void run(Path destination) throws IOException, NoSuchAlgorithmException {
}
}

@SuppressForbidden(reason = "Valid use of thread.sleep.")
private static void sleep(long millis) throws InterruptedException {
Thread.sleep(millis);
}
Expand Down
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ if [ ! -e "$GRADLE_WRAPPER_JAR" ] || ! ( cd "$APP_HOME/gradle/wrapper" && "$shas
"$JAVACMD" $JAVA_OPTS "$APP_HOME/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java" "$GRADLE_WRAPPER_JAR"
WRAPPER_STATUS=$?
if [ "$WRAPPER_STATUS" -eq 1 ]; then
echo "ERROR: Something went wrong. Make sure you're using Java version of exactly 23."
echo "ERROR: Something went wrong. Make sure you're using Java version of exactly 25."
exit $WRAPPER_STATUS
elif [ "$WRAPPER_STATUS" -ne 0 ]; then
exit $WRAPPER_STATUS
Expand Down
10 changes: 10 additions & 0 deletions help/IDEs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ Run the following to set up Eclipse project files:

Open the lucene checkout in VSCode.

GitHub Codespaces
=====

Fork the apache/lucene repository

Browse to https://github.com/codespaces/new

Repository: yourfork/lucene
Click "Create codespace"

Neovim
======

Expand Down
Loading