mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
Removed the gradle tooling-api-plugin module
This commit is contained in:
@@ -35,8 +35,8 @@ jar {
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
archiveBaseName.set('tooling-api')
|
||||
archiveClassifier.set('all')
|
||||
archiveBaseName.set ('tooling-api')
|
||||
archiveClassifier.set ('all')
|
||||
}
|
||||
|
||||
task copyJarToAssets (type: Copy) {
|
||||
@@ -58,9 +58,6 @@ dependencies {
|
||||
implementation project (path: ':build-tools:tooling-api')
|
||||
implementation project (path: ':build-tools:tooling-api-model')
|
||||
|
||||
// To dynamically get the name of plugin class
|
||||
compileOnly project (path: ':build-tools:tooling-api-plugin')
|
||||
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
||||
implementation 'org.gradle:gradle-tooling-api:7.3.3'
|
||||
|
||||
|
||||
+2
-4
@@ -32,16 +32,14 @@ object InitScriptHandler {
|
||||
private val log = ILogger.newInstance(javaClass.simpleName)
|
||||
private const val initDir = ".androidide/init"
|
||||
private var modelsJar = File(".")
|
||||
private var pluginJar = File(".")
|
||||
|
||||
fun getInitScript(): File {
|
||||
// Assuming that the HOME variable is always set in AndroidIDE.
|
||||
val home = getHome()
|
||||
val script = File(home, "$initDir/init.gradle")
|
||||
this.modelsJar = File(home, "$initDir/model.jar")
|
||||
this.pluginJar = File(home, "$initDir/plugin.jar")
|
||||
|
||||
log.debug("Init script:: $script", "models:$modelsJar", "plugin:$pluginJar")
|
||||
log.debug("Init script:: $script", "models:$modelsJar")
|
||||
|
||||
return if (script.exists() && !isJvm()) {
|
||||
script
|
||||
@@ -75,7 +73,7 @@ object InitScriptHandler {
|
||||
|
||||
initscript {
|
||||
dependencies {
|
||||
classpath files ("${modelsJar.absolutePath}", "${pluginJar.absolutePath}")
|
||||
classpath files ("${modelsJar.absolutePath}")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user