加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.93 KB
一键复制 编辑 原始数据 按行查看 历史
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
jar {
manifest {
attributes("Implementation-Title": "BACnet/IT")
}
}
// Maven repositories to look for dependencies
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
// the project dependencies
dependencies {
compile 'com.google.guava:guava:18.0'
compile 'commons-configuration:commons-configuration:1.10'
compile 'com.fasterxml.jackson.core:jackson-databind:2.0.2'
compile 'io.netty:netty-all:4.1.2.Final'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.4'
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.59'
compile group: 'org.eclipse.californium', name: 'californium-core', version: '2.0.0-M11'
compile group: 'org.eclipse.californium', name: 'scandium', version: '2.0.0-M11'
compile group: 'org.eclipse.californium', name: 'demo-certs', version: '2.0.0-M11'
compile group: 'com.augustcellars.cose', name: 'cose-java', version: '0.9.6'
// https://mvnrepository.com/artifact/commons-io/commons-io
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile group: 'com.upokecenter', name: 'cbor', version: '3.0.3'
compile 'dnsjava:dnsjava:2.1.7'
compile 'org.slf4j:slf4j-api:1.7.24'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.3.0-alpha4'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
}
// dependencies of build task
build.dependsOn jacocoTestReport
// test tasks
test {
ignoreFailures = false
reports {
junitXml.enabled = true
html.enabled = true
}
}
checkstyle {
toolVersion = '7.5.1'
}
findbugs {
ignoreFailures = 'true'
}
jacocoTestReport {
reports {
xml.enabled = true
csv.enabled = false
html.enabled = true
}
}
tasks.withType(Checkstyle) {
reports {
xml.enabled true
html.enabled true
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
// generate a Gradle wrapper
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}
// install into Maven repository
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'ch.fhnw.bacnet-it'
artifactId = project.name
version = project.version
from components.java
artifact sourcesJar {
classifier = 'sources'
}
artifact javadocJar {
classifier = 'javadoc'
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化