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 11plugins {
22 id ' maven-publish'
3+ id ' signing'
34}
45
56apply plugin : ' java'
@@ -14,14 +15,9 @@ dependencies {
1415 testImplementation ' commons-io:commons-io:2.2'
1516}
1617
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()
2521}
2622
2723publishing {
@@ -55,7 +51,22 @@ publishing {
5551 developerConnection
= ' scm:git:[email protected] :i-net-software/sass-compiler.git' 5652 url = ' https://github.com/i-net-software/sass-compiler'
5753 }
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+ }
5966 }
6067 }
6168}
69+
70+ signing {
71+ sign publishing. publications. maven
72+ }
You can’t perform that action at this time.
0 commit comments