File tree 2 files changed +26
-6
lines changed
2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ subprojects {
30
30
useJUnitPlatform()
31
31
}
32
32
33
- configure<JavaPluginExtension > {
34
- withSourcesJar()
35
- withJavadocJar()
36
- }
37
-
38
33
afterEvaluate {
39
34
40
35
dependencies {
Original file line number Diff line number Diff line change @@ -18,11 +18,36 @@ plugins {
18
18
19
19
20
20
apply plugin : " kotlin"
21
- apply plugin : ' maven'
21
+ apply plugin : ' maven-publish '
22
22
apply plugin : ' com.github.ben-manes.versions'
23
23
24
24
group = ' com.github.ligi'
25
+ version = ' 0.16.0-SNAPSHOT'
25
26
27
+ tasks. register(' sourceJar' , Jar . class) {
28
+ archiveClassifier. set(' sources' )
29
+ from sourceSets. main. allSource
30
+ }
31
+
32
+ tasks. register(' javadocJar' , Jar . class) {
33
+ archiveClassifier. set(' javadoc' )
34
+ from javadoc. destinationDir
35
+ dependsOn javadoc
36
+ }
37
+
38
+ publishing {
39
+ publications {
40
+ maven(MavenPublication ) {
41
+ from components. java
42
+ artifactId = " ipfs-api-kotlin"
43
+ artifact(tasks. named(' sourceJar' ). get())
44
+ artifact(tasks. named(' javadocJar' ). get())
45
+ }
46
+ }
47
+ repositories {
48
+ mavenLocal()
49
+ }
50
+ }
26
51
repositories {
27
52
jcenter()
28
53
}
You can’t perform that action at this time.
0 commit comments