File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 41
41
install : true
42
42
script :
43
43
- openssl aes-256-cbc -K $encrypted_8e5c960335c9_key -iv $encrypted_8e5c960335c9_iv -in secring.gpg.enc -out secring.gpg -d
44
- - ./gradlew publish closeAndReleaseRepository
44
+ - ./gradlew --info publish closeAndReleaseRepository
Original file line number Diff line number Diff line change 1
1
import com.github.benmanes.gradle.versions.VersionsPlugin
2
+ import de.marcphilipp.gradle.nexus.NexusPublishExtension
2
3
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
3
4
import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel
5
+ import java.time.Duration
4
6
5
7
val ossrhUsername: String? = System .getenv(" OSSRH_USERNAME" )
6
8
val ossrhPassword: String? = System .getenv(" OSSRH_PASSWORD" )
@@ -98,6 +100,15 @@ subprojects {
98
100
archiveClassifier.set(" sources" )
99
101
}
100
102
103
+ configure<NexusPublishExtension > {
104
+ // We're constantly getting socket timeouts on Travis
105
+ clientTimeout.set(Duration .ofMinutes(3 ))
106
+
107
+ repositories {
108
+ sonatype()
109
+ }
110
+ }
111
+
101
112
configure<PublishingExtension > {
102
113
publications {
103
114
create<MavenPublication >(project.name) {
@@ -171,6 +182,7 @@ tasks.releaseRepository.configure {
171
182
172
183
nexusStaging {
173
184
packageGroup = " ru.bozaro"
185
+ stagingProfileId = " 365bc6dc8b7aa3"
174
186
username = ossrhUsername
175
187
password = ossrhPassword
176
188
}
You can’t perform that action at this time.
0 commit comments