Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 503bb19

Browse files
Merge pull request #8 from OpenEdgn/dev
优化项目结构.
2 parents 85041e0 + 58d027e commit 503bb19

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed

build.gradle.kts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
group = "com.github.openEDGN"
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
3+
group = "com.github.OpenEdgn"
24
version = "last"
35
plugins {
46
kotlin("jvm") version "1.4.10"
57
`maven-publish`
68
}
79

10+
java {
11+
modularity.inferModulePath.set(true)
12+
}
13+
14+
815
java.sourceCompatibility = JavaVersion.VERSION_11
916

17+
val compileKotlin: KotlinCompile by tasks
18+
val compileJava: JavaCompile by tasks
19+
compileJava.destinationDir = compileKotlin.destinationDir
20+
21+
1022
dependencies {
1123
implementation(kotlin("reflect"))
1224
implementation(kotlin("stdlib"))

src/main/java/module-info.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module open_edgn.dataformat4k {
2+
requires kotlin.stdlib;
3+
requires kotlin.reflect;
4+
requires jdk.unsupported;
5+
exports com.github.open_edgn.data.format;
6+
opens com.github.open_edgn.data.format;
7+
}

src/main/kotlin/com/github/open_edgn/data/format/Annotations.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ package com.github.open_edgn.data.format
1111
* @property alias Array<out String>
1212
* @constructor
1313
*/
14+
@Deprecated("将在后期版本移除")
1415
@Retention(AnnotationRetention.RUNTIME)
1516
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD)
1617
annotation class ArgsItem(
@@ -22,10 +23,11 @@ annotation class ArgsItem(
2223
/**
2324
* 忽略字段,打上此字段后将忽略对此字段的一切事情
2425
*/
26+
@Deprecated("将在后期版本移除")
2527
@Retention(AnnotationRetention.RUNTIME)
2628
@Target(AnnotationTarget.FUNCTION,
2729
AnnotationTarget.CLASS,
2830
AnnotationTarget.FILE,
2931
AnnotationTarget.PROPERTY,
3032
AnnotationTarget.FIELD)
31-
annotation class Ignore()
33+
annotation class Ignore

src/main/kotlin/com/github/open_edgn/data/format/Args2Reader.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import kotlin.reflect.jvm.jvmErasure
1313
* @param allowJVMArgs 添加 JVM 参数
1414
* @param args 程序传参
1515
*/
16+
@Deprecated("实用性不大,将在后期版本移除")
1617
class Args2Reader(args: Array<String>, allowJVMArgs: Boolean = false) : BaseArgsLoader() {
1718
private val data = HashMap<String, String>()
1819

src/main/kotlin/com/github/open_edgn/data/format/StringFormatUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object StringFormatUtils {
3636
*
3737
* @param formatArr Array<out IObjectFormat<*>> 解析方案
3838
*/
39-
fun include(vararg formatArr: IObjectFormat<*>) {
39+
internal fun include(vararg formatArr: IObjectFormat<*>) {
4040
for (format in formatArr) {
4141
for (clazz in format.register) {
4242
formatMap[clazz] = format

0 commit comments

Comments
 (0)