加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
user_9018123 提交于 2024-07-08 05:49 . update build.gradle.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'versions.gradle'
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$versions.gradle"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
// classpath "com.novoda:bintray-release:$versions.bintray_release"
classpath "com.github.panpf.bintray-publish:bintray-publish:$versions.bintray_release"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2"
}
}
plugins {
// 添加插件信息
id "org.sonarqube" version "2.6-rc1"
}
// 在 buildscript 模块之后的位置插入以下行
apply plugin: "org.sonarqube"
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
allprojects {
tasks.withType(Javadoc) {
options{
encoding "UTF-8"
charSet 'UTF-8'
links "http://docs.oracle.com/javase/8/docs/api"
}
options.addStringOption('Xdoclint:none', '-quiet')
// options.compilerArgs << "-Xlint:unchecked" << "- Xlint:deprecation"
failOnError false
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化