Skip to content

Commit

Permalink
#830 Add module-info to the modules (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thihup authored Aug 20, 2024
1 parent f235e91 commit 7ce4f59
Show file tree
Hide file tree
Showing 9 changed files with 161 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ buildscript {
dependencies {
classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:6.4.0"
classpath "org.xtext:xtext-gradle-plugin:4.0.0"
classpath "org.gradlex:extra-java-module-info:1.8"
}
}

Expand Down
22 changes: 22 additions & 0 deletions org.eclipse.lsp4j.debug/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/******************************************************************************
* Copyright (c) 2024 Thiago Henrique Hupner and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/

module org.eclipse.lsp4j.debug {
requires com.google.gson;
requires org.eclipse.lsp4j.jsonrpc;
requires org.eclipse.lsp4j.jsonrpc.debug;

exports org.eclipse.lsp4j.debug;
exports org.eclipse.lsp4j.debug.adapters;
exports org.eclipse.lsp4j.debug.launch;
exports org.eclipse.lsp4j.debug.services;
}
21 changes: 21 additions & 0 deletions org.eclipse.lsp4j.generator/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/******************************************************************************
* Copyright (c) 2024 Thiago Henrique Hupner and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/

module org.eclipse.lsp4j.generator {

requires com.google.common;
requires com.google.gson;
requires org.eclipse.xtend.lib.macro;
requires org.eclipse.lsp4j.jsonrpc;

exports org.eclipse.lsp4j.generator;
}
21 changes: 21 additions & 0 deletions org.eclipse.lsp4j.jsonrpc.debug/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/******************************************************************************
* Copyright (c) 2024 Thiago Henrique Hupner and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/

module org.eclipse.lsp4j.jsonrpc.debug {
requires com.google.gson;
requires org.eclipse.lsp4j.jsonrpc;

exports org.eclipse.lsp4j.jsonrpc.debug;
exports org.eclipse.lsp4j.jsonrpc.debug.adapters;
exports org.eclipse.lsp4j.jsonrpc.debug.json;
exports org.eclipse.lsp4j.jsonrpc.debug.messages;
}
25 changes: 25 additions & 0 deletions org.eclipse.lsp4j.jsonrpc/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/******************************************************************************
* Copyright (c) 2024 Thiago Henrique Hupner and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/

module org.eclipse.lsp4j.jsonrpc {

requires java.logging;
requires com.google.gson;

exports org.eclipse.lsp4j.jsonrpc;
exports org.eclipse.lsp4j.jsonrpc.json;
exports org.eclipse.lsp4j.jsonrpc.json.adapters;
exports org.eclipse.lsp4j.jsonrpc.messages;
exports org.eclipse.lsp4j.jsonrpc.services;
exports org.eclipse.lsp4j.jsonrpc.util;
exports org.eclipse.lsp4j.jsonrpc.validation;
}
19 changes: 19 additions & 0 deletions org.eclipse.lsp4j.websocket.jakarta/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/******************************************************************************
* Copyright (c) 2024 Thiago Henrique Hupner and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/

module org.eclipse.lsp4j.websocket.jakarta {
requires jakarta.websocket;
requires java.logging;
requires org.eclipse.lsp4j.jsonrpc;

exports org.eclipse.lsp4j.websocket.jakarta;
}
10 changes: 10 additions & 0 deletions org.eclipse.lsp4j.websocket/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/


plugins {
id("org.gradlex.extra-java-module-info")
}

ext.title = 'LSP4J WebSocket'
description = 'WebSocket support for LSP4J (deprecated, please migrate to org.eclipse.lsp4j.websocket.jakarta)'

Expand All @@ -22,3 +27,8 @@ dependencies {
jar.bundle.bnd(
'Import-Package': '*'
)

extraJavaModuleInfo {
automaticModule('javax.websocket:javax.websocket-api', 'javax.websocket.api')
automaticModule('org.hamcrest:hamcrest-core', 'hamcrest.core')
}
19 changes: 19 additions & 0 deletions org.eclipse.lsp4j.websocket/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/******************************************************************************
* Copyright (c) 2024 Thiago Henrique Hupner and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/

module org.eclipse.lsp4j.websocket {
requires javax.websocket.api;
requires java.logging;
requires org.eclipse.lsp4j.jsonrpc;

exports org.eclipse.lsp4j.websocket;
}
23 changes: 23 additions & 0 deletions org.eclipse.lsp4j/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/******************************************************************************
* Copyright (c) 2024 Thiago Henrique Hupner and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/

module org.eclipse.lsp4j {

requires com.google.gson;
requires org.eclipse.lsp4j.jsonrpc;

exports org.eclipse.lsp4j;
exports org.eclipse.lsp4j.adapters;
exports org.eclipse.lsp4j.launch;
exports org.eclipse.lsp4j.services;
exports org.eclipse.lsp4j.util;
}

0 comments on commit 7ce4f59

Please sign in to comment.