mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
71 lines
1.9 KiB
Groovy
71 lines
1.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/>.
|
|
*/
|
|
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: ':build-tools:logger')
|
|
implementation project (path: ':build-tools:jsonrpc')
|
|
implementation project (path: ':build-tools:xml-dom')
|
|
api project (path: ':build-tools:builder-model-impl')
|
|
|
|
implementation common.jkotlin
|
|
}
|
|
|
|
task copyToTestDir (type: Copy) {
|
|
from "$project.buildDir.absolutePath/libs/tooling-api-model.jar"
|
|
into "${project.rootProject.findProject (":build-tools:tooling-api-impl").file ("src/test/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"
|
|
}
|
|
} |