加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
aalmiray 提交于 2016-03-29 16:01 . Apply SCM commit hash to JAR manifest
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.3.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.11.3'
classpath 'me.tatarka:gradle-retrolambda:3.2.4'
classpath 'net.nemerosa:versioning:1.6.2'
//compile fileTree(dir: 'libs', include: ['*.jar'])
}
}
allprojects {
apply plugin: 'base'
apply plugin: 'idea'
apply plugin: 'com.github.ben-manes.versions'
repositories {
jcenter()
mavenCentral()
flatDir { dir rootProject.file('libs') }
}
if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
subprojects { subproj ->
apply plugin: 'java'
apply from: rootProject.file('gradle/code-coverage.gradle')
apply from: rootProject.file('gradle/javafx.gradle')
configurations {
compileOnly
testCompileOnly
}
subproj.tasks.withType(JavaCompile) {
sourceCompatibility = subproj.sourceCompatibility
targetCompatibility = subproj.targetCompatibility
}
subproj.tasks.withType(GroovyCompile) {
sourceCompatibility = subproj.sourceCompatibility
targetCompatibility = subproj.targetCompatibility
}
dependencies {
compileOnly project.files(project.jfxrtLocation)
}
sourceSets {
main {
compileClasspath += [configurations.compileOnly]
}
test {
compileClasspath += [configurations.testCompileOnly]
}
}
javadoc {
classpath += [configurations.compileOnly]
}
idea {
module {
scopes.PROVIDED.plus += [configurations.compileOnly]
scopes.PROVIDED.plus += [configurations.testCompileOnly]
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化