This repository was archived by the owner on Nov 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 3838 - ~/.gradle
3939 key : v1-dependencies-{{ checksum "build.gradle.kts" }}
4040
41+ - run : ./gradlew clean
4142 - run : ./gradlew build
4243
4344 # run tests!
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ plugins {
2828}
2929
3030project.group = " com.dunctebot"
31- project.version = " 1.0.0 "
31+ project.version = " 1.0.1 "
3232val archivesBaseName = " sourcemanagers"
3333
3434repositories {
@@ -55,7 +55,23 @@ tasks.withType<Wrapper> {
5555}
5656
5757val bintrayUpload: BintrayUploadTask by tasks
58+ val jar: Jar by tasks
5859val 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+ }
5975
6076bintrayUpload.apply {
6177 dependsOn(build)
@@ -68,6 +84,7 @@ publishing {
6884 publications {
6985 register(" BintrayRelease" , MavenPublication ::class ) {
7086 from(components[" java" ])
87+ artifact(sourcesJar)
7188
7289 artifactId = archivesBaseName
7390 groupId = project.group as String
You can’t perform that action at this time.
0 commit comments