代码拉取完成,页面将自动刷新
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'
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。