Removed the gradle tooling-api-plugin module

This commit is contained in:
Akash Yadav
2022-04-24 18:52:48 +05:30
parent a6373970fa
commit 83f036fb2e
3 changed files with 4 additions and 9 deletions
+2 -5
View File
@@ -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'
@@ -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}")
}
}