Skip to content

Commit f5b1b92

Browse files
committed
docs fix
1 parent 046f48b commit f5b1b92

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

build.gradle.kts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "tech.aliorpse.mcutils"
10-
version = System.getenv("GITHUB_REF_NAME")
10+
version = System.getenv("GITHUB_REF_NAME") ?: "0.0.1"
1111

1212
repositories {
1313
mavenCentral()
@@ -22,6 +22,11 @@ dependencies {
2222
testImplementation(kotlin("test"))
2323
}
2424

25+
java {
26+
withSourcesJar()
27+
withJavadocJar()
28+
}
29+
2530
tasks.test {
2631
useJUnitPlatform()
2732
}
@@ -30,12 +35,6 @@ tasks.named<DokkaGeneratePublicationTask>("dokkaGeneratePublicationHtml") {
3035
outputDirectory.set(layout.buildDirectory.dir("dokka"))
3136
}
3237

33-
@Suppress("unused")
34-
val sourcesJar by tasks.registering(Jar::class) {
35-
archiveClassifier.set("sources")
36-
from(sourceSets["main"].allSource)
37-
}
38-
3938
configure<com.vanniktech.maven.publish.MavenPublishBaseExtension> {
4039
publishToMavenCentral()
4140
signAllPublications()

0 commit comments

Comments
 (0)