Files
AndroidIDE/lsp/java/build.gradle
T
2022-10-24 18:36:52 +05:30

94 lines
2.9 KiB
Groovy

/*
* This file is part of AndroidIDE.
*
* AndroidIDE is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* AndroidIDE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
*/
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
namespace "com.itsaky.androidide.lsp.java"
compileSdkVersion rootProject.ext.compileSdk
buildToolsVersion rootProject.ext.buildTools
defaultConfig {
minSdkVersion rootProject.ext.minSdk
targetSdkVersion rootProject.ext.targetSdk
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile ('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
kapt {
arguments {
arg ('eventBusIndex', 'com.itsaky.androidide.events.LspJavaEventsIndex')
}
}
dependencies {
kapt common.eventbus_ap
implementation common.editor
implementation common.javaparser
implementation common.utilcode
implementation androidx.annotation
implementation google.guava_jre
implementation google.gson
compileOnly androidx.appcompat
compileOnly google.material
compileOnly project (':actions')
compileOnly project (':common')
implementation project (path: ':resources')
implementation project (path: ':lsp:api')
implementation project (path: ':build-tools:javac')
implementation project (path: ':build-tools:javac-services')
implementation project (path: ':build-tools:google-java-format')
implementation androidx.ktx
implementation common.kotlin
testImplementation project (':lsp:testing')
testImplementation project (':common')
testImplementation project (':actions')
testImplementation project (':build-tools:javac')
testImplementation tests.junit
testImplementation tests.google_truth
testImplementation tests.robolectric
androidTestImplementation tests.androidx_junit
androidTestImplementation tests.androidx_espresso
androidTestImplementation tests.google_truth
}
repositories {
mavenCentral ()
}