Files
AndroidIDE/subprojects/tooling-api-model/build.gradle
T
2022-12-21 18:36:08 +05:30

72 lines
1.8 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/>.
*/
plugins {
id 'java-library'
id 'org.jetbrains.kotlin.jvm'
}
java {
sourceCompatibility = rootProject.ext.javaSourceVersion
targetCompatibility = rootProject.ext.javaTargetVersion
}
repositories {
maven {
url 'https://repo.gradle.org/gradle/libs-releases/'
}
}
dependencies {
implementation project (path: ':logger')
api project (path: ':subprojects:jsonrpc')
api project (path: ':subprojects:xml-dom')
api project (path: ':subprojects:builder-model-impl')
implementation common.jkotlin
}
task copyToTestDir (type: Copy) {
from "$project.buildDir.absolutePath/libs/tooling-api-model.jar"
into "${project.rootProject.file ("tests/test-home/.androidide/init").absolutePath}/"
rename {
"model.jar"
}
outputs.upToDateWhen {
false
}
}
project.tasks.jar {
finalizedBy copyToTestDir
outputs.upToDateWhen {
false
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "11"
}
}