Open ntviet18 opened 6 years ago
I think Maven is totally enough for this project.
@scruel , I agree that Maven is more popular. But it seems Jetbrains doesn't support Maven in plugin development https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html
@ntviet18 It says "The recommended workflow", not unsupported.
~I'd say Gradle is preferred considering Jetbrains~ nevermind, ntviet18 beat me to it.
Anyhow, +1 on this, except that it would be better to add the latest version of Gradle (4.9 instead of 4.7) in my opinion.
By the way, it seems like you somehow changed the line-endings in all the files.
@scruel , It would be nice if you know some official supports from Jetbrains. I think this https://plugins.jetbrains.com/plugin/7127-intellij-plugin-development-with-maven should probably works, but I can't find any explanation documentation how to use it.
@jmerle , Thank you for you support. I tried Gradle 4.8, but it failed with some Ivy conflicts. Maybe 4.9 would work. I think we will try again after receiving some feedback from @EgorKulikov .
@scruel I think the argument ntviet18 gave to counter the "Maven is enough" is actually quite valid. JetBrains recommends that you use Gradle for new projects, or Plugin DevKit for existing projects. At the moment, the latter is in use, although Gradle offers some advantages, like easier handling (in my opinion) of dependencies and running the IDE with the extension installed for local testing. In my eyes, those two features are worth switching from Plugin DevKit to Gradle.
I don't think it's a Gradle or Maven thing, I think it's a Gradle or Plugin DevKit thing.
Hi!
I think switching to gradle is a good idea. I would appreciate if you would resolve conflicts with beta branch (and please, make all future pull requests based on beta)
@EgorKulikov , I updated the pull request. Please check.
I am omw to google code jam, so I’ll likely will process this next week
@EgorKulikov , good luck!
@ntviet18 Sorry for unchecked words. I used to believe this project has already been managed by maven (in fact it's the IDEA auto-import), until I update IDEA to 2018.2, then the compile error occurs... For future plugin development and my own convenience, I will merge your PR into my forked project manually to fix it. Thanks!
@scruel , cheer! I'm not sure what are you sorry about. But if you want to discuss it, please feel to comment.
Were you able to complete the gradle integration with this project. I came up with a similar idea and found out about this pull request. It will be a nice addition to this plugin.
Hi @EgorKulikov ,
Do you consider applying Gradle structure to CHelper? Here I make a few quick changes that possibly make the development and deployment processes a little bit more convenient, e.g.
0) Run tests: ./gradlew test 1) Run sandbox: ./gradlew runIde 2) Package: ./gradlew buildPlugin 3) Publish: ./gradlew publishPlugin 4) etc.
Note: I didn't change anything in your code except some files were automatically migrated from CLRF to LF. I will revert them back if you think this pull request is likely to be merged.