From 385e0435c199b8a899251d9933ea12a79b30cb18 Mon Sep 17 00:00:00 2001 From: smoothbear Date: Thu, 27 May 2021 10:21:02 +0900 Subject: [PATCH] =?UTF-8?q?:gear:=20::=20(#2)=20Javadoc=20build=20option?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/build.gradle | 28 ++++++++++++++++++++++++++-- settings.gradle | 2 +- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/lib/build.gradle b/lib/build.gradle index 2208304..c7168f1 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -9,8 +9,8 @@ plugins { id 'maven-publish' } -group 'java.team-xquare' -version '0.0.3-SNAPSHOT' +group 'io.github.team-xquare' +version '0.0.4-SNAPSHOT' repositories { mavenCentral() @@ -27,7 +27,31 @@ test { useJUnitPlatform() } +task javadocJar(type: Jar) { + archiveClassifier.set('javadoc') + from javadoc +} + +task sourcesJar(type: Jar) { + archiveClassifier.set('sources') + from sourceSets.main.allSource +} + +artifacts { + archives javadocJar, sourcesJar +} + publishing { + publications { + maven(MavenPublication) { + groupId = 'io.github.team-xquare' + artifactId = 'utils' + version = '0.0.4' + + + artifact 'utils.jar' + } + } repositories { maven { name = "OSSRH" diff --git a/settings.gradle b/settings.gradle index 466f246..7575fc4 100644 --- a/settings.gradle +++ b/settings.gradle @@ -7,5 +7,5 @@ * in the user manual at https://docs.gradle.org/6.8.3/userguide/multi_project_builds.html */ -rootProject.name = 'java-utils' +rootProject.name = 'utils' include('lib')