@@ -3,11 +3,11 @@ import net.ltgt.gradle.errorprone.errorprone
33
44plugins {
55 id(" java-library" )
6- id(" maven-publish" )
76 alias(libs.plugins.indra)
87 alias(libs.plugins.indra.checkstyle)
98 alias(libs.plugins.blossom)
109 alias(libs.plugins.errorprone)
10+ alias(libs.plugins.publisher)
1111}
1212
1313repositories {
@@ -35,43 +35,8 @@ indra {
3535 checkstyle(libs.versions.checkstyle.get())
3636}
3737
38- publishing {
39- publications {
40- create<MavenPublication >(" maven" ) {
41- from(components[" java" ])
42- pom {
43- name = project.name
44- url = " https://github.com/Siebrenvde/ntfy-java"
45- licenses {
46- license {
47- name = " The MIT License"
48- url = " https://opensource.org/licenses/MIT"
49- }
50- }
51- developers {
52- developer {
53- id = " siebrenvde"
54- name = " Siebrenvde"
55- email = " siebren@siebrenvde.dev"
56- url = " https://siebrenvde.dev"
57- timezone = " Europe/Brussels"
58- }
59- }
60- scm {
61- connection = " scm:git:https://github.com/Siebrenvde/ntfy-java.git"
62- developerConnection = " scm:git:ssh://git@github.com/Siebrenvde/ntfy-java.git"
63- url = " https://github.com/Siebrenvde/ntfy-java"
64- }
65- }
66- }
67-
68- repositories.maven {
69- val repo = if (version.toString().endsWith(" -SNAPSHOT" )) " snapshots" else " releases"
70- url = uri(" https://repo.siebrenvde.dev/${repo} /" )
71- name = " siebrenvde"
72- credentials(PasswordCredentials ::class )
73- }
74- }
38+ publisher {
39+ github(" Siebrenvde" , " ntfy-java" )
7540}
7641
7742tasks.javadoc.configure {
0 commit comments