File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' maven-publish'
3
+ id ' signing'
3
4
}
4
5
5
6
apply plugin : ' java'
@@ -14,14 +15,9 @@ dependencies {
14
15
testImplementation ' commons-io:commons-io:2.2'
15
16
}
16
17
17
- task sourcesJar (type : Jar , dependsOn : classes) {
18
- archiveClassifier = ' sources'
19
-
20
- from sourceSets. main. java
21
- }
22
-
23
- jar {
24
- dependsOn sourcesJar
18
+ java {
19
+ withJavadocJar()
20
+ withSourcesJar()
25
21
}
26
22
27
23
publishing {
@@ -55,7 +51,22 @@ publishing {
55
51
developerConnection = ' scm:git:git@github.com:i-net-software/sass-compiler.git'
56
52
url = ' https://github.com/i-net-software/sass-compiler'
57
53
}
58
- }
54
+ }
55
+ }
56
+ }
57
+
58
+ repositories {
59
+ maven {
60
+ name = ' sonatype'
61
+ url = uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2/" )
62
+ credentials {
63
+ username = project. findProperty(" ossrhUsername" )
64
+ password = project. findProperty(" ossrhPassword" )
65
+ }
59
66
}
60
67
}
61
68
}
69
+
70
+ signing {
71
+ sign publishing. publications. maven
72
+ }
You can’t perform that action at this time.
0 commit comments