goxr3plus / java-stream-player

🌌Java Advanced Audio Controller Library (WAV, AU, AIFF, MP3, OGG VORBIS, FLAC, MONKEY's AUDIO and SPEEX audio formats )
GNU General Public License v3.0
147 stars 33 forks source link

add module-info.java and rename jar file name #6

Closed TonalidadeHidrica closed 5 years ago

TonalidadeHidrica commented 5 years ago

Hi. I found this project very useful. Thanks for make them as a library. By the way, I'm trying to use this library as a dependency but I encountered to a problem: I cannot use it from modular project (JDK >=9). The current file name of jar file is java-stream-player-V8.0.0.jar, which results in an invalid automatic module name java.stream.player.v8.0.0. So I have two proposals:

either of the above would work fine to avoid the error, but I suggest applying both because both are important convention.

TonalidadeHidrica commented 5 years ago

Tried all the approaches by myself and got following results:

TonalidadeHidrica commented 5 years ago

It seems that, from me, tritonus-share is a subset of tritonus-all, so excluding tritonus-share from dependency has been successful. After adding excluding rule like this:

    compile(group = "com.github.tonalidadehidrica", name = "java-stream-player", version = "8.0.4",
            dependencyConfiguration = {
                exclude(group="com.googlecode.soundlibs", module = "tritonus-share")
            })

I could finally play an audio!!!!!!! Horray!!!

By the way, my only concern is that the version of tritonus-share is 0.3.7.4, while that of tritonus-all is 0.3.7.2. Would that cause problem? Whatever, this is off-topic from this issue.

Anyway, again, please consider adding Automatic-Module-Name attribute and/or renaming version tags. Thanks again for this awesome library.

goxr3plus commented 5 years ago

Do you want me to make you contributor on this project so you have direct access to commits :)?

I am not expert on Java 9 and above trying to learn.

Do you want to be a contributor or send me pull requests which i will merge :)?

goxr3plus commented 5 years ago

We can change it all from the root if you want, i don't have a problem, we can make it be compatible only for Java 9 and above, after all Java 8 will be obsolete in some years :)

goxr3plus commented 5 years ago

I want to pass XR3Player in Java 11 and all this extra dependencies are making my passing difficult, let's change all of em.

TonalidadeHidrica commented 5 years ago

Wow, thanks for the invitation! Actually I'm not sure I can contribute to this project continuously, so for now, let me send some pull request instead. I'll send a pull req later before the changes in my repo was an experimental one.

goxr3plus commented 5 years ago

Latest version 9.0.1works for you :) ? i followed the pattern you said and removed V .

I will surely pass this project to Java 11 and support only Java 11 and above :)

goxr3plus commented 5 years ago

Be careful with your commits => https://github.com/goxr3plus/java-stream-player/invitations

Here is your collaborator invitation . Let me know before you do braking changes :)

goxr3plus commented 5 years ago

About your second section comment . I am reading and figuring out a solution .

TonalidadeHidrica commented 5 years ago

Thanks for the early action. Now automatic module name problem for this project is resolved, but there's still problem of java-vorbis-support as I mentioned above. What does "second section" refer to?

goxr3plus commented 5 years ago

Second section refered to your second comment when you opened this issue.

goxr3plus commented 5 years ago

I contacted the owner of the 'java-vorbis-support' probably we will remove that dependency, after all i am converting any piece of audio to. mp3 for now.

There is also and alternative called Image

goxr3plus commented 5 years ago

I have read the pom. xml of your project, working on it right now, it's just ah, if i remove borbis support then the library will support like literally only. mp3, which can be done also by default by JavaFX.

TonalidadeHidrica commented 5 years ago

I didn't remove vorbis support. I found it was published in Maven Central Repository, so I just substituted it instead of using repo in jitpack. The jitpack dependency causes -v1.0.0.jar, but Central Repo dependency doesn't, so it all worked well.

goxr3plus commented 5 years ago

I removed unused dependencies check latest version 9.0.2 and let me know if there are still problems .

@TonalidadeHidrica @HelgeStenstrom