forked from bugsnag/bugsnag-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
24 lines (22 loc) · 824 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
buildscript {
repositories {
mavenCentral()
}
dependencies {
if (project.hasProperty('releasing')) {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0'
classpath 'net.researchgate:gradle-release:2.4.0'
}
}
}
// This can only be applied in root project, see https://github.com/Codearte/gradle-nexus-staging-plugin/issues/47
if (project.hasProperty('releasing')) {
apply plugin: 'io.codearte.nexus-staging'
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
// fail build on warnings, disable options complaining about Java 6 compatibility when building with JDK 7+
options.compilerArgs << "-Xlint:all" << "-Werror" << "-Xlint:-options"
}
}