DJ-Raven / swing-toast-notifications

Swing toast notifications use for java desktop application
Apache License 2.0
59 stars 11 forks source link

swing-toast-notifications in Maven Central? #2

Open HiranChaudhuri opened 1 year ago

HiranChaudhuri commented 1 year ago

I see you are using pom.xml yourself. Would be great if projects making use of this nice library could refer to a maven dependency for ease of use.

DJ-Raven commented 9 months ago

This library not available in maven, try use jar file, by copy to the root project /library/swing-toast-notifications-1.0.1.jar

<dependency>
    <groupId>raven.toast</groupId>
    <artifactId>swing-toast-notifications</artifactId>
    <version>1.0-SNAPSHOT</version>
    <scope>system</scope>
    <systemPath>${basedir}/library/swing-toast-notifications-1.0.1.jar</systemPath>
</dependency>
herbariorum commented 7 months ago

Com a ajuda do chatgpt, fiz o seguinte: mvn install:install-file -Dfile=swing-toast-notifications-1.0.1.jar -DgroupId=raven.toast -DartifactId=swing-toast-notifications -Dversion=1.0.1 -Dpackaging=jar. Com isso, o jar ficou disponível. Sendo assim, acrescentei as dependências no pom.xml:

raven.toast
<artifactId>swing-toast-notifications</artifactId>
<version>1.0.1</version>

Não sugiram erros ou warning.