Skip to content

Commit b7b38d1

Browse files
committed
Update build.gradle
1 parent 03ef289 commit b7b38d1

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

build.gradle

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ buildscript {
1414
}
1515

1616
subprojects {
17+
apply plugin: 'maven-publish'
18+
1719
apply plugin: 'com.github.johnrengelman.shadow'
1820
apply plugin: 'java'
1921

@@ -28,8 +30,20 @@ subprojects {
2830
mavenCentral()
2931
}
3032

31-
jar {
32-
archiveFileName = "${project.name}.jar"
33+
java {
34+
withSourcesJar()
35+
withJavadocJar()
36+
}
37+
38+
publishing {
39+
publications {
40+
maven(MavenPublication) {
41+
groupId project.group
42+
artifactId project.name
43+
version project.version
44+
from components.java
45+
}
46+
}
3347
}
3448

3549
shadowJar {

0 commit comments

Comments
 (0)