Skip to content

Commit

Permalink
⚙️ :: (#2) Javadoc build option 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
smoothbear committed May 27, 2021
1 parent 88da11d commit 385e043
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
28 changes: 26 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 385e043

Please sign in to comment.