提交 3dc48ec4 编写于 作者: 如梦技术's avatar 如梦技术 🐛

添加 mica-native,待完善 #38 #I3PX2N

上级 932822a2
......@@ -5,6 +5,7 @@ plugins {
ext {
javaVersion = JavaVersion.VERSION_1_8
springBootVersion = "2.4.5"
springnativeVersion = "0.9.1"
springCloudVersion = "2020.0.2"
micaAutoVersion = "2.0.4"
micaWeiXinVersion = "2.1.0"
......@@ -50,6 +51,7 @@ configure(subprojects - project(":mica-bom")) {
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/spring" }
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
maven { url "https://repo.spring.io/release" }
maven { url "https://repo.spring.io/milestone" }
mavenCentral()
}
......
......@@ -33,6 +33,7 @@ dependencyManagement {
dependency "net.dreamlu:mica-qrcode:${VERSION}"
dependency "net.dreamlu:mica-jetcache:${VERSION}"
dependency "net.dreamlu:mica-lite:${VERSION}"
dependency "net.dreamlu:mica-native:${VERSION}"
// commons
dependency "com.google.code.findbugs:jsr305:${findbugsVersion}"
dependency "io.swagger:swagger-annotations:${swaggerAnnotationsVersion}"
......
# mica-native 组件
扩展 mica 对 spring-native 的支持。
## 使用
### maven
```xml
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-native</artifactId>
<version>${version}</version>
</dependency>
```
### gradle
```groovy
compile("net.dreamlu:mica-native:${version}")
```
dependencies {
compileOnly "org.springframework.experimental:spring-aot:${springnativeVersion}"
compileOnly "org.springframework.experimental:spring-native:${springnativeVersion}"
}
/*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.dreamlu.mica.nativex.captcha;
import org.springframework.nativex.hint.NativeHint;
import org.springframework.nativex.hint.ResourceHint;
import org.springframework.nativex.type.NativeConfiguration;
/**
* 验证码 spring native 支持
*
* @author L.cm
*/
@NativeHint(resources = @ResourceHint(patterns = "^fonts/.*.ttf"))
public class CaptchaHints implements NativeConfiguration {
}
/*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.dreamlu.mica.nativex.ip2region;
import org.springframework.nativex.hint.NativeHint;
import org.springframework.nativex.hint.ResourceHint;
import org.springframework.nativex.type.NativeConfiguration;
/**
* Ip2Region spring native 支持
*
* @author L.cm
*/
@NativeHint(resources = @ResourceHint(patterns = "^ip2region/ip2region.db"))
public class Ip2RegionHints implements NativeConfiguration {
}
/*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.dreamlu.mica.nativex;
......@@ -17,3 +17,4 @@ include "mica-logging"
include "mica-qrcode"
include "mica-jetcache"
include "mica-lite"
include "mica-native"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册