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

Error when setting makeFile #7

Open
ghost opened this issue Nov 20, 2018 · 1 comment
Open

Error when setting makeFile #7

ghost opened this issue Nov 20, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 20, 2018

Error:

Exception thrown while executing model rule: ExternalBuildPlugin.Rules#configureExternalBuildTask(Task, ExternalBuildPlugin.ExternalBuildSpec)
> No signature of method: static com.cisco.gradle.externalbuild.tasks.GnuMake.setMakefile() is applicable for argument types: (java.io.File) values: [path/to/file/file.mak]
  Possible solutions: setMakefile(java.io.File), getMakefile(), makefile(java.lang.Object)

Sample Build Script

apply plugin: 'com.cisco.external-build'
import com.cisco.gradle.externalbuild.ExternalNativeLibrarySpec
import com.cisco.gradle.externalbuild.tasks.GnuMake

model {
    components {
        foo(ExternalNativeLibrarySpec) {
            buildConfig(GnuMake) {
                makeFile 'path/to/file/file.mak'
                targets 'all', 'build', 'debug', 'clean', 'prep'
            }
        }
    }
}

Description

Unable to use plugin successfully, all attempts result in the same error. Attempted to use various methods of setting the make file. I'm unsure if it is operator error, lacking documentation, or a bug. Using version 1.14 of plugin and gradle version 4.10.2.

@ghost
Copy link
Author

ghost commented Nov 20, 2018

Happy to help troubleshoot and provide more information. I'm hopeful for the plugin to save me (one inexperienced with custom gradle plugins) writing a version doing the same thing.

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

0 participants