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

Gradle support for Java projects #27

Open
ljleppan opened this issue Sep 3, 2015 · 4 comments
Open

Gradle support for Java projects #27

ljleppan opened this issue Sep 3, 2015 · 4 comments

Comments

@ljleppan
Copy link
Member

ljleppan commented Sep 3, 2015

Implement Gradle support for Java. Use AbstractJavaPlugin to handle all the busywork and call the tmc-junit-runner maven goal via Gradle to run tests, if possible.

See https://docs.gradle.org/current/userguide/embedding.html and https://docs.gradle.org/current/javadoc/.

Preferably do this in a way that allows for easy extraction of code for a dedicated Java-independent Gradle plugin at a later date.

@wakr
Copy link

wakr commented Sep 18, 2015

I can try to do this one

@wakr
Copy link

wakr commented Oct 4, 2015

Update: Having lots of troubles with creating the result.txt because all the solutions are maven-based atm. Have implemented the compiling for gradle projects and there is also tests for them. Should I keep going or create pr which contains some support for gradle projects (test evaluations are missing) so somebody else could also work with this?

@UMTti
Copy link

UMTti commented Oct 24, 2015

So the problem seems to be that https://github.com/testmycode/tmc-maven-plugin/blob/master/src/main/java/fi/helsinki/cs/tmc/maven/TmcTestMojo.java this must be translated to gradle plugin

@ljleppan
Copy link
Member Author

That Mojo seems to be doing essentially the same thing as AntPlugin#createRunResultFile(Path projectBasePath), so perhaps that would be a better starting point. The Mojo seems to contain loads of Maven specific code.

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

4 participants