This repository was archived by the owner on Nov 26, 2023. It is now read-only.
File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 38
38
- ~/.gradle
39
39
key : v1-dependencies-{{ checksum "build.gradle.kts" }}
40
40
41
+ - run : ./gradlew clean
41
42
- run : ./gradlew build
42
43
43
44
# run tests!
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ plugins {
28
28
}
29
29
30
30
project.group = " com.dunctebot"
31
- project.version = " 1.0.0 "
31
+ project.version = " 1.0.1 "
32
32
val archivesBaseName = " sourcemanagers"
33
33
34
34
repositories {
@@ -55,7 +55,23 @@ tasks.withType<Wrapper> {
55
55
}
56
56
57
57
val bintrayUpload: BintrayUploadTask by tasks
58
+ val jar: Jar by tasks
58
59
val build: Task by tasks
60
+ val clean: Task by tasks
61
+
62
+ val sourcesJar = task<Jar >(" sourcesJar" ) {
63
+ archiveClassifier.set(" sources" )
64
+ from(sourceSets[" main" ].allJava)
65
+ }
66
+
67
+ build.apply {
68
+ // dependsOn(clean)
69
+ dependsOn(jar)
70
+ dependsOn(sourcesJar)
71
+
72
+ jar.mustRunAfter(clean)
73
+ sourcesJar.mustRunAfter(jar)
74
+ }
59
75
60
76
bintrayUpload.apply {
61
77
dependsOn(build)
@@ -68,6 +84,7 @@ publishing {
68
84
publications {
69
85
register(" BintrayRelease" , MavenPublication ::class ) {
70
86
from(components[" java" ])
87
+ artifact(sourcesJar)
71
88
72
89
artifactId = archivesBaseName
73
90
groupId = project.group as String
You can’t perform that action at this time.
0 commit comments