LightCoreJava

A Java library for the Light

License

License

Categories

Categories

Java Languages
GroupId

GroupId

cn.alphabets.light
ArtifactId

ArtifactId

lightcore-java
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

LightCoreJava
A Java library for the Light
Source Code Management

Source Code Management

https://github.com/LightCircle/LightCoreJava

Download lightcore-java

How to add to project

<!-- https://jarcasting.com/artifacts/cn.alphabets.light/lightcore-java/ -->
<dependency>
    <groupId>cn.alphabets.light</groupId>
    <artifactId>lightcore-java</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/cn.alphabets.light/lightcore-java/
implementation 'cn.alphabets.light:lightcore-java:1.1.0'
// https://jarcasting.com/artifacts/cn.alphabets.light/lightcore-java/
implementation ("cn.alphabets.light:lightcore-java:1.1.0")
'cn.alphabets.light:lightcore-java:jar:1.1.0'
<dependency org="cn.alphabets.light" name="lightcore-java" rev="1.1.0">
  <artifact name="lightcore-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='cn.alphabets.light', module='lightcore-java', version='1.1.0')
)
libraryDependencies += "cn.alphabets.light" % "lightcore-java" % "1.1.0"
[cn.alphabets.light/lightcore-java "1.1.0"]

Dependencies

compile (23)

Group / Artifact Type Version
io.vertx : vertx-web jar 3.3.3
io.vertx : vertx-codegen jar 3.3.3
mysql : mysql-connector-java jar 5.1.42
org.apache.commons : commons-dbcp2 jar 2.1.1
org.mongodb : mongodb-driver jar 3.4.0
org.apache.commons : commons-lang3 jar 3.5
org.apache.commons : commons-collections4 jar 4.1
commons-io : commons-io jar 2.5
org.apache.logging.log4j : log4j-api jar 2.7
org.apache.logging.log4j : log4j-core jar 2.7
junit : junit jar 4.12
org.yaml : snakeyaml jar 1.17
org.atteo : evo-inflector jar 1.2.1
com.squareup : javapoet jar 1.7.0
org.jtwig : jtwig-core jar 5.65
org.apache.tika : tika-core jar 1.14
org.apache.logging.log4j : log4j-slf4j-impl jar 2.7
org.quartz-scheduler : quartz jar 2.2.1
org.quartz-scheduler : quartz-jobs jar 2.2.1
org.apache.maven : maven-model jar 3.3.9
org.json : json jar 20160810
org.apache.poi : poi jar 3.16
org.apache.poi : poi-ooxml jar 3.16

Project Modules

There are no modules declared in this project.

如何对应动态变化的Structure

  • 使用JsonObject,用字符串的方式去访问,需要繁琐的类型转换
  • 启动时,代码动态生成Structure类

依赖的第三方包

memo

/**

  • 执行以下替换操作:
  • ObjectId("57c52f87fb35fd050073f9c4") -> "57c52f87fb35fd050073f9c4"
  • ISODate("2016-08-30T07:02:31.391Z") -> "2016-08-30T07:02:31.391Z" */

json = json.replaceAll("ObjectId\((\"\w{24}\")\)|ISODate\((\"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z\")\)", "$1$2"); res().putHeader(CONTENT_TYPE, "application/json").end(json);

Maven Central Repository公开lightcore-java

  • 生成公钥秘钥对(有时时间会很久,20分钟?)

    gpg --gen-key

  • 查看生成的秘钥对

    gpg --list-keys

  • 上传公钥到指定的验证服务器,DA34A5F为生成的秘钥对名称

    gpg2 --keyserver hkp://pool.sks-keyservers.net --send-keys DA34A5F

  • 申请Sonatype账号,并提交issue,需要指定groupId

  • 设定上传Jar用的账号,使用在上一步设定的账户

    vi /root/.m2/settings.xml

    light-core username password
  • 编译,上传

    mvn deploy -Dgpg.passphrase=password

  • 登陆到sonatype, 右边菜单为 Build Promotion - Staging Repositories - 检索light 依次Close -> Release https://oss.sonatype.org/ 需要一个小时,才能反映到Repository

  • 编译命令行中 指定版本 mvn -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 package -Djar.finalName=app

cn.alphabets.light

Light

Versions

Version
1.1.0
1.0.5
1.0.2
1.0.0