| /* |
| * Copyright 2016 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| // For Java compilation |
| apply plugin: 'java' |
| |
| // For annotation processing for packaging with sched-build. |
| // TODO review which plugin to use. |
| apply plugin: "net.ltgt.apt" |
| |
| // Repositories for our dependencies |
| repositories { |
| jcenter() |
| } |
| |
| buildscript { |
| repositories { |
| maven { |
| url "https://plugins.gradle.org/m2/" |
| } |
| } |
| dependencies { |
| classpath "net.ltgt.gradle:gradle-apt-plugin:0.6" |
| } |
| } |
| |
| // Jack plugin are compatible with JRE 7 |
| sourceCompatibility = 1.7 |
| targetCompatibility = 1.7 |
| |
| dependencies { |
| // Jack libraries |
| compile fileTree(dir: 'libs', include: '*.jar') |
| // JSR305 |
| compile 'com.google.code.findbugs:jsr305:1.3.9' |
| // sched-lib annotation processor |
| apt files('tools/sched-build.jar') |
| } |
| |
| defaultTasks 'assemble' |