jsyn icon indicating copy to clipboard operation
jsyn copied to clipboard

Publish JSyn on Maven

Open philburk opened this issue 4 years ago • 9 comments

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

philburk avatar Jul 02 '20 15:07 philburk

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

wsargent avatar Jul 14 '20 18:07 wsargent

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

philburk avatar Oct 30 '20 22:10 philburk

isn't this a duplicate of #54 ?

ligi avatar Aug 25 '21 01:08 ligi

@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?!

philburk avatar Apr 10 '23 18:04 philburk

yes - exactly.

ligi avatar Apr 10 '23 19:04 ligi

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 avatar Apr 10 '23 19:04 philburk

Using jitpack should be documented.

philburk avatar Apr 10 '23 23:04 philburk

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

philburk avatar Apr 22 '23 22:04 philburk

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.

philburk avatar Jan 04 '24 18:01 philburk