edibleday / teavm-gradle-plugin

Gradle plugin for compiling(transpiling) JVM bytecode to JavaScript using TeaVM
Apache License 2.0
17 stars 13 forks source link

Fixed error - not finding project classes #5

Closed renatoathaydes closed 5 years ago

renatoathaydes commented 6 years ago

In the latest Gradle versions, looks like they changed the location where the class files and resources are put...

This plugin was looking for them in classes/main, whereas Gradle now puts them in classes/java/main or classes/kotlin/main etc...

A more reliable way to find the project's class files is by using project.configurations.name.allArtifacts which is what I've done.

I also cleaned up some small issues with the current code which I hope you will agree make it more readable and generally better.

renatoathaydes commented 5 years ago

Since there has been no interest from the maintainer of this project to continue doing it, I will try to continue the project via my fork: https://github.com/renatoathaydes/teavm-gradle-plugin

I invite others to collaborate on that fork.