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

Feature Request: Publishing the analyzer as a standalone JAR #32

Open
davidburstromspotify opened this issue Sep 28, 2020 · 6 comments
Open

Comments

@davidburstromspotify
Copy link
Contributor

Hi!

Would you consider publishing the analyzer/processor as a standalone JAR, e.g. on Maven Central? That way the project topology would lend itself better to be included as a third party analyser, without the Gradle Plugin infrastructure attached to it.

@mattmook
Copy link
Member

mattmook commented Oct 4, 2020

HI @davidburstromspotify, yes this is an excellent idea, and shouldn't be much work either.

@mattmook
Copy link
Member

mattmook commented Oct 4, 2020

Are there any particular wrappers that you think we could include built-in support for?

@davidburstromspotify
Copy link
Contributor Author

Well, the reason I'm asking is because I could use it for a tool that I'm working on, that's eventually going to be open sourced.

It could also make the linter available as an integration in IntelliJ/Eclipse/others.

@mattmook
Copy link
Member

mattmook commented Oct 5, 2020

As a very quick workaround, so you are unblocked, you should be able to depend on the plugin as a jar already.

Add the gradle plugins repository to the parent build.gradle.kts:

subprojects {
    repositories {
        ...
        maven {
            setUrl("https://plugins.gradle.org/m2/")
        }
    }

Depend on the plugin:

implementation("gradle.plugin.com.appmattus:markdown:0.6.0")

Then, to execute, create an instance of RuleProcessor and call process with your required configuration. Take a look at MarkdownLint for the default values that the plugin uses.

@davidburstromspotify
Copy link
Contributor Author

Thank you for your suggestion, I'll use that!

@hanggrian
Copy link

In this spirit, also consider uploading com.appmatus.rules into Maven Central so that we can create custom rules.

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

No branches or pull requests

3 participants