Skip to content

Commit 3f6dcb1

Browse files
author
volker
committed
deploy to sonatype
1 parent e4f42fc commit 3f6dcb1

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

build.gradle

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'maven-publish'
3+
id 'signing'
34
}
45

56
apply 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

2723
publishing {
@@ -55,7 +51,22 @@ publishing {
5551
developerConnection = 'scm:git:git@github.com: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+
}

0 commit comments

Comments
 (0)