Thread
#detekt
    Michael Marshall

    Michael Marshall

    1 year ago
    How can I change the output location of
    detekt-rules.jar
    when I run
    ./gradlew detektMain
    ? The default location is
    detekt-rules/build/libs/detekt-rules.jar
    but I want to move it to somewhere not auto ignored by git
    gammax

    gammax

    1 year ago
    I’m not sure what you’re referring to 🤔 Are you building
    detekt-rules
    and you want to have it placed somewhere else? Are you talking about your own custom rules module or are you referring to this module?
    Michael Marshall

    Michael Marshall

    1 year ago
    It's the jar of the custom rules module I have, sorry should have specified
    I believe it gets generated when
    detektMain
    is run. Hold on, is this just the same artifact that's compiled when you do a gradle build on the module?
    gammax

    gammax

    1 year ago
    What’s the name of your custom module?
    Michael Marshall

    Michael Marshall

    1 year ago
    detekt-rules
    gammax

    gammax

    1 year ago
    So the question is not really detekt related, as it involves the
    java
    plugin for Gradle. Ideally you could follow the approach described here: https://discuss.gradle.org/t/how-redefine-the-directory-where-generated-jar-files-libsdirname/6576
    Michael Marshall

    Michael Marshall

    1 year ago
    Thanks for this, I'll look into it 🙂