2021-09-24 05:31:17 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'java-library'
|
2023-04-24 10:58:17 +00:00
|
|
|
id 'maven-publish'
|
|
|
|
id 'signing'
|
2021-09-24 05:31:17 +00:00
|
|
|
}
|
2023-12-15 08:49:32 +00:00
|
|
|
apply from: '../spotless.gradle'
|
2021-09-24 05:31:17 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDirs 'src/main/src', 'src/main/thirdparty', 'src/main/test'
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir 'src/main/resources'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
test {
|
|
|
|
java {
|
|
|
|
srcDir 'src/test/java'
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir 'src/test/resources'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
api project (":common")
|
2023-03-30 15:56:13 +00:00
|
|
|
api 'io.netty:netty-tcnative-boringssl-static:2.0.59.Final'
|
2021-09-24 05:31:17 +00:00
|
|
|
api 'com.google.code.gson:gson:2.8.8'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
}
|
2024-05-23 12:13:33 +00:00
|
|
|
version = "1.0.1"
|
2023-04-24 10:58:17 +00:00
|
|
|
task classJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = "jar"
|
|
|
|
}
|
|
|
|
task sourceJar(type: Jar, dependsOn: classes) {
|
|
|
|
archiveClassifier = "sources"
|
|
|
|
classifier = "sources"
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
}
|
|
|
|
|
|
|
|
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 "front-base"
|
|
|
|
version "${version}"
|
|
|
|
from components.java
|
|
|
|
artifact sourceJar
|
|
|
|
artifact javadocJar
|
|
|
|
artifact classJar
|
|
|
|
pom {
|
|
|
|
name = "bdware-front-base"
|
|
|
|
description = "front-base"
|
|
|
|
url = "https://gitee.com/BDWare/front-base"
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name = "Mulan PSL v2"
|
|
|
|
url = "http://license.coscl.org.cn/MulanPSL2"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id = "dataware"
|
|
|
|
email = "caihq@pku.edu.cn"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scm {
|
|
|
|
connection = "scm:git:https://gitee.com/BDWare/front-base.git"
|
|
|
|
developerConnection = "scm:git:https://gitee.com/BDWare/front-base.git"
|
|
|
|
url = "https://gitee.com/BDWare/front-base"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name 'bdwareSnapshot'
|
|
|
|
url 'https://oss.sonatype.org/content/repositories/snapshots'
|
|
|
|
credentials {
|
|
|
|
username = "${NEXUS_USERNAME}"
|
|
|
|
password = "${NEXUS_PASSWORD}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name 'bdware'
|
|
|
|
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
|
|
|
|
credentials {
|
|
|
|
username = "${NEXUS_USERNAME}"
|
|
|
|
password = "${NEXUS_PASSWORD}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
signing {
|
|
|
|
sign publishing.publications.mavenJava
|
|
|
|
}
|