philburk / jsyn

Modular audio synthesizer library with unit generators in Java
http://www.softsynth.com/jsyn
Apache License 2.0
224 stars 61 forks source link

Publish JSyn on Maven #82

Open philburk opened 4 years ago

philburk commented 4 years ago

GitHub has a Packages section that can be used to simplify the process.

wsargent commented 4 years ago

This would be great. I'm looking at adding some audio cues for exposing the GC behavior in Java https://twitter.com/will_sargent/status/1283075547111649280

philburk commented 4 years ago

@wsargent - #83 was merged so it should now be easy to publish JSyn on Maven.

ligi commented 3 years ago

isn't this a duplicate of #54 ?

philburk commented 1 year ago

@ligi in #54 you wrote:

FYI: as https://github.com/philburk/jsyn/pull/83 is merged and introduced gradle you can now consume it via jitpack (alternative to maven central - IMHO even better) like so: implementation 'com.github.philburk:jsyn:16.8.1'

Can you expand on this? Does jitpack make my GitHub releases automatically available without having to post on Maven?!

ligi commented 1 year ago

yes - exactly.

philburk commented 1 year ago

I did an experiment with a new project. I created a fresh project and added code to the build.gradle.kts file. It worked!

Added Jitpack.

repositories {
    mavenCentral()
    maven { url = uri("https://jitpack.io") }
}

Added JSyn dependency.

dependencies {
    testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
    testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
    implementation("com.github.philburk:jsyn:v16.8.1")
}

Note that the kts gradle files have a different syntax from the Groovy gradle files.

philburk commented 1 year ago

Using jitpack should be documented.

philburk commented 1 year ago

Documented in README. Do we still need a Maven repo? Deprioritizing this for now.

philburk commented 10 months ago

There are some reasons not to rely solely on jitpack. https://github.com/gradle/gradle/issues/16310#issuecomment-785945980

Folks continue to ask for a Maven repo so I bumped the priority back up.