mirror of
https://github.com/tursom/TursomServer.git
synced 2025-03-03 22:30:09 +08:00
update
This commit is contained in:
parent
184721967c
commit
68d2ed2975
@ -15,6 +15,7 @@ include("ts-core:ts-coroutine:ts-coroutine-lock")
|
||||
include("ts-core:ts-ws-client")
|
||||
include("ts-core:ts-yaml")
|
||||
include("ts-core:ts-json")
|
||||
include("ts-core:ts-xml")
|
||||
include("ts-socket")
|
||||
include("ts-web")
|
||||
include("ts-web:ts-web-netty")
|
||||
|
33
ts-core/ts-xml/build.gradle.kts
Normal file
33
ts-core/ts-xml/build.gradle.kts
Normal file
@ -0,0 +1,33 @@
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":"))
|
||||
// 解析XML https://mvnrepository.com/artifact/org.dom4j/dom4j
|
||||
api(group = "org.dom4j", name = "dom4j", version = "2.1.3")
|
||||
}
|
||||
|
||||
@kotlin.Suppress("UNCHECKED_CAST")
|
||||
(rootProject.ext["excludeTest"] as (Project, TaskContainer) -> Unit)(project, tasks)
|
||||
|
||||
tasks.register("install") {
|
||||
finalizedBy(tasks["publishToMavenLocal"])
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
groupId = project.group.toString()
|
||||
artifactId = project.name
|
||||
version = project.version.toString()
|
||||
|
||||
from(components["java"])
|
||||
try {
|
||||
artifact(tasks["sourcesJar"])
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package cn.tursom.utils.xml
|
||||
package cn.tursom.core.xml
|
||||
|
||||
import org.dom4j.Document
|
||||
import org.dom4j.Element
|
@ -1,6 +1,6 @@
|
||||
package cn.tursom.utils.xml
|
||||
package cn.tursom.core.xml
|
||||
|
||||
import cn.tursom.utils.xml.interfaces.*
|
||||
import cn.tursom.core.xml.interfaces.*
|
||||
|
||||
object XmlDocument {
|
||||
fun tag(name: String? = null, action: (TextPotableXmlElement.() -> Unit)? = null): TextXmlElement {
|
@ -1,4 +1,4 @@
|
||||
package cn.tursom.utils.xml
|
||||
package cn.tursom.core.xml
|
||||
|
||||
enum class ElementTarget {
|
||||
Attribute, ElementText, SubElement
|
@ -1,4 +1,4 @@
|
||||
package cn.tursom.utils.xml.interfaces
|
||||
package cn.tursom.core.xml.interfaces
|
||||
|
||||
interface ElementContainerPotableXmlElement : ElementContainerXmlElement, PotableXmlElement {
|
||||
val size: Int
|
@ -1,4 +1,4 @@
|
||||
package cn.tursom.utils.xml.interfaces
|
||||
package cn.tursom.core.xml.interfaces
|
||||
|
||||
interface ElementContainerXmlElement : XmlElement {
|
||||
val subElement: List<XmlElement>
|
@ -1,4 +1,4 @@
|
||||
package cn.tursom.utils.xml.interfaces
|
||||
package cn.tursom.core.xml.interfaces
|
||||
|
||||
interface PotableXmlElement : XmlElement {
|
||||
override var name: String
|
@ -1,4 +1,4 @@
|
||||
package cn.tursom.utils.xml.interfaces
|
||||
package cn.tursom.core.xml.interfaces
|
||||
|
||||
interface TextPotableXmlElement : TextXmlElement, PotableXmlElement {
|
||||
override var text: String
|
@ -1,4 +1,4 @@
|
||||
package cn.tursom.utils.xml.interfaces
|
||||
package cn.tursom.core.xml.interfaces
|
||||
|
||||
interface TextXmlElement : XmlElement {
|
||||
val text: String
|
@ -1,4 +1,4 @@
|
||||
package cn.tursom.utils.xml.interfaces
|
||||
package cn.tursom.core.xml.interfaces
|
||||
|
||||
interface XmlElement {
|
||||
val name: String
|
@ -1,4 +0,0 @@
|
||||
dependencies {
|
||||
// 解析XML https://mvnrepository.com/artifact/org.dom4j/dom4j
|
||||
compile group: 'org.dom4j', name: 'dom4j', version: '2.1.3'
|
||||
}
|
Loading…
Reference in New Issue
Block a user