End AS formatting madness in build.gradle

This was changed to obey Android Studio's formatting of gradle files. Some of
what it did was fine, but removing all line spacing is bonkers.
This commit is contained in:
Daniel Martí 2015-10-08 17:11:22 +02:00
parent 1f973a7c88
commit d8a624b397

View File

@ -1,6 +1,7 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'witness' apply plugin: 'witness'
apply plugin: 'checkstyle' apply plugin: 'checkstyle'
if (!hasProperty('sourceDeps')) { if (!hasProperty('sourceDeps')) {
repositories { repositories {
@ -82,6 +83,7 @@ if (!hasProperty('sourceDeps')) {
} }
} }
// Only do the libraries imported from maven repositories. Our own libraries // Only do the libraries imported from maven repositories. Our own libraries
// (like privileged-api-lib) and the prebuilt jars already checked into the // (like privileged-api-lib) and the prebuilt jars already checked into the
// source code don't need to be here. // source code don't need to be here.
@ -103,6 +105,7 @@ dependencyVerification {
'org.openhab.jmdns:jmdns:7a4b34b5606bbd2aff7fdfe629edcb0416fccd367fb59a099f210b9aba4f0bce', 'org.openhab.jmdns:jmdns:7a4b34b5606bbd2aff7fdfe629edcb0416fccd367fb59a099f210b9aba4f0bce',
] ]
} }
task binaryDeps(type: Copy, dependsOn: ':F-Droid:prepareReleaseDependencies') { task binaryDeps(type: Copy, dependsOn: ':F-Droid:prepareReleaseDependencies') {
enabled = project.hasProperty('sourceDeps') enabled = project.hasProperty('sourceDeps')
@ -124,6 +127,7 @@ task binaryDeps(type: Copy, dependsOn: ':F-Droid:prepareReleaseDependencies') {
} }
} }
android { android {
compileSdkVersion 22 compileSdkVersion 22
buildToolsVersion '23.0.1' buildToolsVersion '23.0.1'
@ -183,6 +187,7 @@ android {
} }
} }
task checkstyle(type: Checkstyle) { task checkstyle(type: Checkstyle) {
configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml") configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml")
source 'src' source 'src'
@ -191,6 +196,7 @@ task checkstyle(type: Checkstyle) {
classpath = files() classpath = files()
} }
// This person took the example code below from another blogpost online, however // This person took the example code below from another blogpost online, however
// I lost the reference to it: // I lost the reference to it:
// http://stackoverflow.com/questions/23297562/gradle-javadoc-and-android-documentation // http://stackoverflow.com/questions/23297562/gradle-javadoc-and-android-documentation