decomposer icon indicating copy to clipboard operation
decomposer copied to clipboard

Decomposer doesn't create gradle task

Open MaksimAkimov2003 opened this issue 1 year ago • 1 comments

Hello, I'm trying to use your plugin"Decomposer", but I have some troubles. I modified my settings.gradle file like your example in Readme. And my settings.gradle now is: 

pluginManagement {
     repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
       maven(url = "https://jitpack.io")
       }

     resolutionStrategy {
         eachPlugin {
        if(requested.id.toString() == "com.github.takahirom.decomposer"){
        useModule("com.github.takahirom:decomposer:main-SNAPSHOT")}
        }
     }
    plugins {
      id ("com.android.library")
      id ("kotlin-android")
      id ("com.github.takahirom.decomposer")
     }
}

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
      repositories {
        google()
        mavenCentral()
       }
}

rootProject.name = "My Application2"
include(":app")

But task ":uicomponent-compose:compileDebugKotlin" does not exist in my tasks list after sync. And also when i tried to run this task in command line, the was exception: "Task not found"

MaksimAkimov2003 avatar Feb 15 '24 07:02 MaksimAkimov2003

Thank you for trying this plugin. You might have to use id ("com.github.takahirom.decomposer") in your app module. It is because I'm not sure what happens when you use plugins in pluginManagement.

takahirom avatar Feb 15 '24 10:02 takahirom