File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ plugins {
77}
88
99group = " tech.aliorpse.mcutils"
10- version = System .getenv(" GITHUB_REF_NAME" )
10+ version = System .getenv(" GITHUB_REF_NAME" ) ? : " 0.0.1 "
1111
1212repositories {
1313 mavenCentral()
@@ -22,6 +22,11 @@ dependencies {
2222 testImplementation(kotlin(" test" ))
2323}
2424
25+ java {
26+ withSourcesJar()
27+ withJavadocJar()
28+ }
29+
2530tasks.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-
3938configure< com.vanniktech.maven.publish.MavenPublishBaseExtension > {
4039 publishToMavenCentral()
4140 signAllPublications()
You can’t perform that action at this time.
0 commit comments