1 Star 0 Fork 0

qiangzengli/RxJava

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.25 KB
一键复制 编辑 原始数据 按行查看 历史
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.netflix.nebula:gradle-rxjava-project-plugin:4.0.0'
classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.1.0'
}
}
description = 'RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.'
apply plugin: 'java'
//apply plugin: 'pmd'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
apply plugin: 'ru.vyarus.animalsniffer'
apply plugin: 'nebula.rxjava-project'
repositories {
mavenCentral()
}
dependencies {
signature 'org.codehaus.mojo.signature:java16:1.1@signature'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'com.google.guava:guava:24.0-jre'
testCompile 'com.pushtorefresh.java-private-constructor-checker:checker:1.2.0'
perfCompile 'org.openjdk.jmh:jmh-core:1.11.3'
perfCompile 'org.openjdk.jmh:jmh-generator-annprocess:1.11.3'
}
javadoc {
exclude "**/rx/internal/**"
exclude "**/test/**"
exclude "**/perf/**"
options {
windowTitle = "RxJava Javadoc ${project.version}"
}
// Clear the following options to make the docs consistent with the old format
options.addStringOption('top').value = ''
options.addStringOption('doctitle').value = ''
options.addStringOption('header').value = ''
if (JavaVersion.current().isJava7()) {
// "./gradle/stylesheet.css" only supports Java 7
options.addStringOption('stylesheetfile', rootProject.file('./gradle/stylesheet.css').toString())
}
}
// support for snapshot/final releases with the various branches RxJava uses
nebulaRelease {
addReleaseBranchPattern(/\d+\.\d+\.\d+/)
addReleaseBranchPattern('HEAD')
}
if (project.hasProperty('release.useLastTag')) {
tasks.prepare.enabled = false
}
test{
maxHeapSize = "1200m"
}
license {
excludes(["**/*.md", "**/*.txt", "**/unsafe/*.java", "**/atomic/*.java", "**/Beta.java", "**/Experimental.java"])
}
jacoco {
toolVersion = '0.7.7.201606060606' // See http://www.eclemma.org/jacoco/.
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
build.dependsOn jacocoTestReport
//pmd {
// toolVersion = '5.4.2'
// ignoreFailures = true
// sourceSets = [sourceSets.main]
// ruleSets = []
// ruleSetFiles = files('pmd.xml')
//}
//pmdMain {
// reports {
// html.enabled = true
// xml.enabled = true
// }
//}
//task pmdPrint(dependsOn: 'pmdMain') << {
// File file = new File('build/reports/pmd/main.xml')
// if (file.exists()) {
//
// println("Listing first 100 PMD violations")
//
// file.eachLine { line, count ->
// if (count <= 100) {
// println(line)
// }
// }
//
// } else {
// println("PMD file not found.")
// }
//}
//build.dependsOn pmdPrint
animalsniffer {
annotation = 'rx.internal.util.SuppressAnimalSniffer'
}
findbugs {
ignoreFailures true
toolVersion = '3.0.1'
effort = 'max'
reportLevel = 'low'
sourceSets = [sourceSets.main]
}
findbugsMain {
reports {
html.enabled = false // Findbugs can only have on report enabled
xml.enabled = true
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/LIZENGQIANG/RxJava.git
[email protected]:LIZENGQIANG/RxJava.git
LIZENGQIANG
RxJava
RxJava
1.x

搜索帮助