From 2a23c97e5b3aed19505b4de4e10f9f9a0dcc2061 Mon Sep 17 00:00:00 2001 From: Dai MIKURUBE Date: Tue, 5 Jul 2022 17:11:11 +0900 Subject: [PATCH] Get ready for Maven Central with nominating developers --- build.gradle | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a6bf95e..1d83ec4 100644 --- a/build.gradle +++ b/build.gradle @@ -117,6 +117,30 @@ publishing { } developers { + developer { + name = "Sadayuki Furuhashi" + email = "frsyuki@gmail.com" + } + developer { + name = "Muga Nishizawa" + email = "muga.nishizawa@gmail.com" + } + developer { + name = "Satoshi Akama" + email = "satoshiakama@gmail.com" + } + developer { + name = "Dai MIKURUBE" + email = "dmikurube@treasure-data.com" + } + developer { + name = "Shinichi Ishimura" + email = "shiketaudonko41@gmail.com" + } + developer { + name = "Phu Nguyen" + email = "phu@treasure-data.com" + } } scm { @@ -129,7 +153,19 @@ publishing { } repositories { - // It is not ready to release into Maven Central while FTP4J:1.7.2 is not available in Maven Central. + maven { // publishMavenPublicationToMavenCentralRepository + name = "mavenCentral" + if (project.version.endsWith("-SNAPSHOT")) { + url "https://oss.sonatype.org/content/repositories/snapshots" + } else { + url "https://oss.sonatype.org/service/local/staging/deploy/maven2" + } + + credentials { + username = project.hasProperty("ossrhUsername") ? ossrhUsername : "" + password = project.hasProperty("ossrhPassword") ? ossrhPassword : "" + } + } } }