加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 4.25 KB
一键复制 编辑 原始数据 按行查看 历史
蔡华谦 提交于 2024-09-11 14:47 . Revert "prune codes"
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'org.bdware.doip'
version '0.1.0'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
mavenLocal()
}
sourceSets {
main {
java {
srcDirs 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
test {
java {
srcDir 'src/test/java'
}
resources {
srcDir 'src/test/resources'
}
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(Copy) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
implementation 'org.apache.logging.log4j:log4j-api:2.17.2'
implementation 'net.dona.doip:doip-sdk:2.1.0'
implementation 'junit:junit:4.13.1'
implementation 'com.alibaba:fastjson:1.2.83'
implementation 'net.cnri.cordra:cordra-client:2.4.0'
implementation 'com.google.guava:guava:17.0'
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'org.apache.jmeter:ApacheJMeter_java:5.0'
api 'org.bdware.doip:doip-audit-tool:1.0.7'
api project(":doip-sdk")
api 'org.bdware.doip:irp-sdk:1.1.1'
// api project(":irp-sdk")
testImplementation 'io.netty:netty-all:4.1.76.Final'
testImplementation 'junit:junit:4.12'
}
task copyDependentJar(type: Copy, dependsOn: jar) {
from configurations.runtimeClasspath
into "./build/output/libs"
}
task copyDependencies(type: Copy, dependsOn: ["copyDependentJar"]) {
from "./build/libs/$project.name-${version}.jar"
into "./build/output/libs"
}
task classJar(type: Jar, dependsOn: classes) {
classifier = "jar"
}
task sourceJar(type: Jar, dependsOn: classes) {
archiveClassifier = "sources"
classifier = "sources"
from sourceSets.main.allSource
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
classifier = "javadoc"
exclude {
details -> details.file.getAbsolutePath().contains("/gm/")
}
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId "doip-compatibility-tool"
version "${version}"
from components.java
artifact sourceJar
artifact javadocJar
artifact classJar
pom {
name = "bdware-doip-compatibility-tool"
description = "doip compatibility tool developed by bdware"
url = "https://gitee.com/BDWare/doip-compatibility-tool.git"
licenses {
license {
name = "Mulan PSL v2"
url = "http://license.coscl.org.cn/MulanPSL2"
}
}
developers {
developer {
id = "dataware"
email = "caihq@pku.edu.cn"
}
developer {
id = "dataware"
email = "todo"
}
}
scm {
connection = "scm:git:https://gitee.com/BDWare/doip-compatibility-tool.git"
developerConnection = "scm:git:https://gitee.com/BDWare/doip-compatibility-tool.git"
url = "https://gitee.com/BDWare/doip-compatibility-tool"
}
}
}
}
repositories {
maven {
name 'bdwareSnapshotRepository'
url 'https://oss.sonatype.org/content/repositories/snapshots'
credentials {
username = "${NEXUS_USERNAME}"
password = "${NEXUS_PASSWORD}"
}
}
maven {
name 'bdwareRepository'
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
credentials {
username = "${NEXUS_USERNAME}"
password = "${NEXUS_PASSWORD}"
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化