configure generated gradle war artifact

Answered

Is there a way to add a custom gradle scope to the IDEA generated artifact? In my build.gradle file, I add the gradle scope to the idea "compile" scope.

idea {

    module {

         scopes.COMPILE.plus += [configurations.server]

    }

}

 

IntelliJ recognizes this and correctly adds the "configurations.server" scope dependencies to the module. Is there a way to add these dependencies to the generated artifact or to have intelliJ not overwrite the artifact when resyncing? I currently have to manually add them everytime I resync with gradle.

1 comment
Comment actions Permalink

Ah, I figured it out. I needed to use the idea "PROVIDED" scope, not "COMPILE"

0

Please sign in to leave a comment.