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')