diff options
author | Alex Ruiz <alruiz@google.com> | 2013-09-23 16:32:00 -0700 |
---|---|---|
committer | Alex Ruiz <alruiz@google.com> | 2013-09-23 18:50:22 -0700 |
commit | e8c0788ea267b0ecb594e3dcefc48694f413dbc8 (patch) | |
tree | 2db7f2db6c64b52cbdf32e62ad70659e49b16f8d /builder-model/src/main/java/com/android/builder/model/JavaCompileOptions.java | |
parent | b145a5bc83224821465afca969fa6d95b80ec55b (diff) | |
download | build-e8c0788ea267b0ecb594e3dcefc48694f413dbc8.tar.gz |
Now we provide more info about the Gradle build.
This will help better integration with Studio in the
near future.
Change-Id: I1c6ce5c36d9a968f91049e98a4f956cc512f3ce2
Diffstat (limited to 'builder-model/src/main/java/com/android/builder/model/JavaCompileOptions.java')
-rw-r--r-- | builder-model/src/main/java/com/android/builder/model/JavaCompileOptions.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/builder-model/src/main/java/com/android/builder/model/JavaCompileOptions.java b/builder-model/src/main/java/com/android/builder/model/JavaCompileOptions.java new file mode 100644 index 0000000..dafe83a --- /dev/null +++ b/builder-model/src/main/java/com/android/builder/model/JavaCompileOptions.java @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2012 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. + */ +package com.android.builder.model; + +import com.android.annotations.NonNull; + +/** + * Java compile options. + */ +public interface JavaCompileOptions { + /** + * @return the level of compliance Java source code has. + */ + @NonNull + String getSourceCompatibility(); + + /** + * @return the Java version to be able to run classes on. + */ + @NonNull + String getTargetCompatibility(); +} |