Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem was found with the configuration: 'overrideService$kt2ts_plugin' is missing #4

Open
TobseF opened this issue May 7, 2024 · 0 comments

Comments

@TobseF
Copy link

TobseF commented May 7, 2024

Running a Gradle build fails with a configuration problem: overrideService$kt2ts_plugin' is missing an input or output annotation:

A problem was found with the configuration of task ':kt2ts' (type 'Kt2TsTask').
  - In plugin 'se.jensim.kt2ts' type 'se.jensim.gradle.plugin.kt2ts.Kt2TsTask' 
     property 'overrideService$kt2ts_plugin' is missing an input or output annotation.

I have used the example config. I only changed the annotation to match my type.

kt2ts {

    // Repeatable block for linking outputfile to a set of annotations
    output {
        outputFile = file("$buildDir/ts/pss-api.d.ts")
        annotations = listOf("de.tfr.util.GenerateTS")
    }
    
    classFilesSources {
        // Two ways of setting classes dir, if both are set, both are jointly used
        // One has to be provided (for task input resolution to work properly, I made it mandatory)
        compileTasks = listOf(tasks.compileKotlin)
        classesDirs = files("$buildDir/classes/kotlin/main")
    }
    
}

It fails without generating any .ts file.

System

Kotlin: 1.9.23
Gradle: 8.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant