mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
添加 modul-info.java 剩余extra模块
This commit is contained in:
@@ -23,6 +23,22 @@
|
||||
<fastjson2.version>2.0.53</fastjson2.version>
|
||||
<gson.version>2.13.0</gson.version>
|
||||
|
||||
<jetty.version>12.0.19</jetty.version>
|
||||
<jakarta.xml.soap-api.version>3.0.2</jakarta.xml.soap-api.version>
|
||||
<httpclient5.version>5.4.3</httpclient5.version>
|
||||
<httpclient4.version>4.5.14</httpclient4.version>
|
||||
<okhttp.version>5.0.0-alpha.14</okhttp.version>
|
||||
<undertow.version>2.3.18.Final</undertow.version>
|
||||
<tomcat.version>11.0.6</tomcat.version>
|
||||
<smartboot.version>1.4.3</smartboot.version>
|
||||
|
||||
<slf4j.version>2.0.9</slf4j.version>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
<log4j2.version>2.20.0</log4j2.version>
|
||||
<tinylog.version>1.3.6</tinylog.version>
|
||||
<tinylog2.version>2.7.0</tinylog2.version>
|
||||
<commons-logging.version>1.3.4</commons-logging.version>
|
||||
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -91,6 +107,111 @@
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-server</artifactId>
|
||||
<version>${jetty.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jakarta.xml.soap</groupId>
|
||||
<artifactId>jakarta.xml.soap-api</artifactId>
|
||||
<version>${jakarta.xml.soap-api.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.smartboot.http</groupId>
|
||||
<artifactId>smart-http-server</artifactId>
|
||||
<version>${smartboot.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.smartboot.socket</groupId>
|
||||
<artifactId>aio-core</artifactId>
|
||||
<version>1.6.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.smartboot.socket</groupId>
|
||||
<artifactId>aio-pro</artifactId>
|
||||
<version>1.6.6</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents.client5</groupId>
|
||||
<artifactId>httpclient5</artifactId>
|
||||
<version>${httpclient5.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>${httpclient4.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<version>${okhttp.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- 第三方HTTP服务器库 -->
|
||||
<dependency>
|
||||
<groupId>io.undertow</groupId>
|
||||
<artifactId>undertow-core</artifactId>
|
||||
<version>${undertow.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
<artifactId>tomcat-embed-core</artifactId>
|
||||
<version>${tomcat.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<version>${log4j2.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>${slf4j.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>${log4j.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-api</artifactId>
|
||||
<version>${log4j2.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.tinylog</groupId>
|
||||
<artifactId>tinylog</artifactId>
|
||||
<version>${tinylog.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.tinylog</groupId>
|
||||
<artifactId>tinylog-api</artifactId>
|
||||
<version>${tinylog2.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>${commons-logging.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
@@ -348,10 +348,9 @@
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.janeluo</groupId>
|
||||
<artifactId>ikanalyzer</artifactId>
|
||||
<version>2012_u6</version>
|
||||
<optional>true</optional>
|
||||
<groupId>com.jianggujin</groupId>
|
||||
<artifactId>IKAnalyzer-lucene</artifactId>
|
||||
<version>8.0.0</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.apache.lucene</groupId>
|
||||
|
@@ -44,11 +44,31 @@ module hutool.extra {
|
||||
requires spring.beans;
|
||||
requires ganymed.ssh2;
|
||||
requires com.jcraft.jsch;
|
||||
requires static org.apache.sshd.core;
|
||||
requires static org.apache.sshd.common;
|
||||
requires org.apache.sshd.core;
|
||||
requires org.apache.sshd.common;
|
||||
requires mmseg4j.core;
|
||||
requires lucene.core;
|
||||
requires lucene.analyzers.smartcn;
|
||||
requires IKAnalyzer.lucene;
|
||||
requires jieba.analysis;
|
||||
requires jcseg.core;
|
||||
requires word;
|
||||
requires hanlp.portable;
|
||||
requires ansj.seg;
|
||||
requires mynlp;
|
||||
requires io.pebbletemplates;
|
||||
requires enjoy;
|
||||
requires wit.core;
|
||||
requires freemarker;
|
||||
requires thymeleaf;
|
||||
requires velocity.engine.core;
|
||||
requires gg.jte.runtime;
|
||||
requires gg.jte;
|
||||
requires jetbrick.template;
|
||||
requires jetbrick.commons;
|
||||
requires rythm.engine;
|
||||
requires beetl.core;
|
||||
requires jakarta.xml.bind;
|
||||
|
||||
|
||||
}
|
||||
|
@@ -44,6 +44,13 @@
|
||||
<jakarta.servlet-api.version>6.1.0</jakarta.servlet-api.version>
|
||||
<jakarta.xml.soap-api.version>3.0.2</jakarta.xml.soap-api.version>
|
||||
<saaj-impl.version>3.0.4</saaj-impl.version>
|
||||
|
||||
<slf4j.version>2.0.9</slf4j.version>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
<log4j2.version>2.20.0</log4j2.version>
|
||||
<tinylog.version>1.3.6</tinylog.version>
|
||||
<tinylog2.version>2.7.0</tinylog2.version>
|
||||
<commons-logging.version>1.3.4</commons-logging.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -135,6 +142,12 @@
|
||||
<artifactId>smart-http-server</artifactId>
|
||||
<version>${smartboot.version}</version>
|
||||
<scope>provided</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.smartboot.socket</groupId>
|
||||
<artifactId>aio-core</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<!-- 仅用于测试 -->
|
||||
<dependency>
|
||||
@@ -155,5 +168,48 @@
|
||||
<version>1.7.36</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<version>${log4j2.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>${slf4j.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>${log4j.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-api</artifactId>
|
||||
<version>${log4j2.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.tinylog</groupId>
|
||||
<artifactId>tinylog</artifactId>
|
||||
<version>${tinylog.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.tinylog</groupId>
|
||||
<artifactId>tinylog-api</artifactId>
|
||||
<version>${tinylog2.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>${commons-logging.version}</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
@@ -21,10 +21,10 @@ import cn.hutool.v7.http.HttpException;
|
||||
import cn.hutool.v7.http.server.ServerConfig;
|
||||
import cn.hutool.v7.http.server.engine.AbstractServerEngine;
|
||||
import org.smartboot.http.server.*;
|
||||
import org.smartboot.http.server.impl.Request;
|
||||
import org.smartboot.socket.extension.plugins.SslPlugin;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* smart-http-server引擎
|
||||
@@ -79,13 +79,16 @@ public class SmartHttpServerEngine extends AbstractServerEngine {
|
||||
// SSL
|
||||
final SSLContext sslContext = config.getSslContext();
|
||||
if(null != sslContext){
|
||||
final SslPlugin<Request> sslPlugin;
|
||||
try {
|
||||
sslPlugin = new SslPlugin<>(() -> sslContext);
|
||||
// 使用反射创建SslPlugin
|
||||
Class<?> sslPluginClass = Class.forName("org.smartboot.socket.extension.plugins.SslPlugin");
|
||||
Object sslPlugin = sslPluginClass.getConstructor(Supplier.class).newInstance((Supplier<SSLContext>) () -> sslContext);
|
||||
// 使用反射调用addPlugin方法
|
||||
Method addPlugin = configuration.getClass().getMethod("addPlugin", Object.class);
|
||||
addPlugin.invoke(configuration, sslPlugin);
|
||||
} catch (final Exception e) {
|
||||
throw new HttpException(e);
|
||||
}
|
||||
configuration.addPlugin(sslPlugin);
|
||||
}
|
||||
|
||||
// 选项
|
||||
|
@@ -19,6 +19,10 @@
|
||||
* @author choweli
|
||||
*/
|
||||
module hutool.http {
|
||||
exports cn.hutool.v7.http.meta;
|
||||
exports cn.hutool.v7.http.client;
|
||||
exports cn.hutool.v7.http;
|
||||
|
||||
requires jdk.httpserver;
|
||||
requires hutool.log;
|
||||
requires org.apache.httpcomponents.httpclient;
|
||||
@@ -36,6 +40,11 @@ module hutool.http {
|
||||
requires org.apache.tomcat.embed.core;
|
||||
|
||||
requires aio.pro;
|
||||
// requires aio.core;
|
||||
|
||||
opens cn.hutool.v7.http.client.engine;
|
||||
opens cn.hutool.v7.http.client.engine.httpclient5;
|
||||
opens cn.hutool.v7.http.client.engine.httpclient4;
|
||||
opens cn.hutool.v7.http.client.engine.okhttp;
|
||||
opens cn.hutool.v7.http.client.engine.jdk;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user