project_version=4.4.14.19 * 修复clear指令构建命令时抛出转型异常导致无法正确发送指令 * 修复ChangePolicy增加和减小index写反的问题
67 lines
1.8 KiB
Groovy
67 lines
1.8 KiB
Groovy
plugins {
|
|
id("idea")
|
|
id("eclipse")
|
|
id("maven-publish")
|
|
}
|
|
|
|
group = "${project_version}"
|
|
version = "${project_version}"
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply {
|
|
plugin('java')
|
|
plugin("maven-publish")
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.realityforge.org.jetbrains.annotations:org.jetbrains.annotations:1.7.0'
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.23.1'
|
|
implementation 'org.apache.logging.log4j:log4j-api:2.23.1'
|
|
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.23.1'
|
|
implementation 'org.apache.commons:commons-lang3:3.17.0'
|
|
implementation 'com.google.guava:guava:33.3.0-jre'
|
|
implementation 'io.netty:netty-all:4.1.109.Final'
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
implementation 'org.slf4j:slf4j-api:2.0.16'
|
|
|
|
testImplementation platform('org.junit:junit-bom:5.10.0')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType(PublishToMavenRepository) {
|
|
dependsOn assemble
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "local"
|
|
url = layout.buildDirectory.dir("repo")
|
|
}
|
|
maven {
|
|
name = 'LTDNexus'
|
|
url = 'https://nexus.bot.leisuretimedock.top/repository/maven-releases/'
|
|
credentials {
|
|
username = System.getenv('LTDNexusUsername') ?: ''
|
|
password = System.getenv('LTDNexusPassword') ?: ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |