Skip to content

Commit 7ce4f59

Browse files
authored
#830 Add module-info to the modules (#843)
1 parent f235e91 commit 7ce4f59

File tree

9 files changed

+161
-0
lines changed

9 files changed

+161
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ buildscript {
2323
dependencies {
2424
classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:6.4.0"
2525
classpath "org.xtext:xtext-gradle-plugin:4.0.0"
26+
classpath "org.gradlex:extra-java-module-info:1.8"
2627
}
2728
}
2829

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/******************************************************************************
2+
* Copyright (c) 2024 Thiago Henrique Hupner and others.
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Eclipse Public License v. 2.0 which is available at
6+
* http://www.eclipse.org/legal/epl-2.0,
7+
* or the Eclipse Distribution License v. 1.0 which is available at
8+
* http://www.eclipse.org/org/documents/edl-v10.php.
9+
*
10+
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11+
******************************************************************************/
12+
13+
module org.eclipse.lsp4j.debug {
14+
requires com.google.gson;
15+
requires org.eclipse.lsp4j.jsonrpc;
16+
requires org.eclipse.lsp4j.jsonrpc.debug;
17+
18+
exports org.eclipse.lsp4j.debug;
19+
exports org.eclipse.lsp4j.debug.adapters;
20+
exports org.eclipse.lsp4j.debug.launch;
21+
exports org.eclipse.lsp4j.debug.services;
22+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/******************************************************************************
2+
* Copyright (c) 2024 Thiago Henrique Hupner and others.
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Eclipse Public License v. 2.0 which is available at
6+
* http://www.eclipse.org/legal/epl-2.0,
7+
* or the Eclipse Distribution License v. 1.0 which is available at
8+
* http://www.eclipse.org/org/documents/edl-v10.php.
9+
*
10+
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11+
******************************************************************************/
12+
13+
module org.eclipse.lsp4j.generator {
14+
15+
requires com.google.common;
16+
requires com.google.gson;
17+
requires org.eclipse.xtend.lib.macro;
18+
requires org.eclipse.lsp4j.jsonrpc;
19+
20+
exports org.eclipse.lsp4j.generator;
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/******************************************************************************
2+
* Copyright (c) 2024 Thiago Henrique Hupner and others.
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Eclipse Public License v. 2.0 which is available at
6+
* http://www.eclipse.org/legal/epl-2.0,
7+
* or the Eclipse Distribution License v. 1.0 which is available at
8+
* http://www.eclipse.org/org/documents/edl-v10.php.
9+
*
10+
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11+
******************************************************************************/
12+
13+
module org.eclipse.lsp4j.jsonrpc.debug {
14+
requires com.google.gson;
15+
requires org.eclipse.lsp4j.jsonrpc;
16+
17+
exports org.eclipse.lsp4j.jsonrpc.debug;
18+
exports org.eclipse.lsp4j.jsonrpc.debug.adapters;
19+
exports org.eclipse.lsp4j.jsonrpc.debug.json;
20+
exports org.eclipse.lsp4j.jsonrpc.debug.messages;
21+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/******************************************************************************
2+
* Copyright (c) 2024 Thiago Henrique Hupner and others.
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Eclipse Public License v. 2.0 which is available at
6+
* http://www.eclipse.org/legal/epl-2.0,
7+
* or the Eclipse Distribution License v. 1.0 which is available at
8+
* http://www.eclipse.org/org/documents/edl-v10.php.
9+
*
10+
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11+
******************************************************************************/
12+
13+
module org.eclipse.lsp4j.jsonrpc {
14+
15+
requires java.logging;
16+
requires com.google.gson;
17+
18+
exports org.eclipse.lsp4j.jsonrpc;
19+
exports org.eclipse.lsp4j.jsonrpc.json;
20+
exports org.eclipse.lsp4j.jsonrpc.json.adapters;
21+
exports org.eclipse.lsp4j.jsonrpc.messages;
22+
exports org.eclipse.lsp4j.jsonrpc.services;
23+
exports org.eclipse.lsp4j.jsonrpc.util;
24+
exports org.eclipse.lsp4j.jsonrpc.validation;
25+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/******************************************************************************
2+
* Copyright (c) 2024 Thiago Henrique Hupner and others.
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Eclipse Public License v. 2.0 which is available at
6+
* http://www.eclipse.org/legal/epl-2.0,
7+
* or the Eclipse Distribution License v. 1.0 which is available at
8+
* http://www.eclipse.org/org/documents/edl-v10.php.
9+
*
10+
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11+
******************************************************************************/
12+
13+
module org.eclipse.lsp4j.websocket.jakarta {
14+
requires jakarta.websocket;
15+
requires java.logging;
16+
requires org.eclipse.lsp4j.jsonrpc;
17+
18+
exports org.eclipse.lsp4j.websocket.jakarta;
19+
}

org.eclipse.lsp4j.websocket/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
1111
******************************************************************************/
1212

13+
14+
plugins {
15+
id("org.gradlex.extra-java-module-info")
16+
}
17+
1318
ext.title = 'LSP4J WebSocket'
1419
description = 'WebSocket support for LSP4J (deprecated, please migrate to org.eclipse.lsp4j.websocket.jakarta)'
1520

@@ -22,3 +27,8 @@ dependencies {
2227
jar.bundle.bnd(
2328
'Import-Package': '*'
2429
)
30+
31+
extraJavaModuleInfo {
32+
automaticModule('javax.websocket:javax.websocket-api', 'javax.websocket.api')
33+
automaticModule('org.hamcrest:hamcrest-core', 'hamcrest.core')
34+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/******************************************************************************
2+
* Copyright (c) 2024 Thiago Henrique Hupner and others.
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Eclipse Public License v. 2.0 which is available at
6+
* http://www.eclipse.org/legal/epl-2.0,
7+
* or the Eclipse Distribution License v. 1.0 which is available at
8+
* http://www.eclipse.org/org/documents/edl-v10.php.
9+
*
10+
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11+
******************************************************************************/
12+
13+
module org.eclipse.lsp4j.websocket {
14+
requires javax.websocket.api;
15+
requires java.logging;
16+
requires org.eclipse.lsp4j.jsonrpc;
17+
18+
exports org.eclipse.lsp4j.websocket;
19+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/******************************************************************************
2+
* Copyright (c) 2024 Thiago Henrique Hupner and others.
3+
*
4+
* This program and the accompanying materials are made available under the
5+
* terms of the Eclipse Public License v. 2.0 which is available at
6+
* http://www.eclipse.org/legal/epl-2.0,
7+
* or the Eclipse Distribution License v. 1.0 which is available at
8+
* http://www.eclipse.org/org/documents/edl-v10.php.
9+
*
10+
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
11+
******************************************************************************/
12+
13+
module org.eclipse.lsp4j {
14+
15+
requires com.google.gson;
16+
requires org.eclipse.lsp4j.jsonrpc;
17+
18+
exports org.eclipse.lsp4j;
19+
exports org.eclipse.lsp4j.adapters;
20+
exports org.eclipse.lsp4j.launch;
21+
exports org.eclipse.lsp4j.services;
22+
exports org.eclipse.lsp4j.util;
23+
}

0 commit comments

Comments
 (0)