Skip to content

Commit ca2fccb

Browse files
code clean up
1 parent d72c31c commit ca2fccb

File tree

2 files changed

+4
-43
lines changed

2 files changed

+4
-43
lines changed

.github/workflows/publishing2sonatype.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ jobs:
3636
sed -i -e 's|.*sonatypePassword.*| password = "${{ secrets.SPASSWORD }}"|' ./build.gradle
3737
- name: Sonatype Publish
3838
run: |
39-
./gradlew --info publishJarPublicationToStagingRepository
40-
ls -la build/libs/
39+
./gradlew publishJarPublicationToStagingRepository
4140
BEARER=$(printf "${{ secrets.SUSER }}:${{ secrets.SPASSWORD }}" | base64)
4241
curl --request POST \
4342
--verbose \

build.gradle

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,12 @@ def pomConfig = {
7474
inceptionYear 2016
7575
organization {
7676
name 'Sift Science'
77-
url 'https://siftscience.com'
77+
url 'https://sift.com'
7878
}
7979
developers {
8080
developer {
81-
id 'lopatin'
82-
name 'Alex Lopatin'
83-
url 'https://github.com/lopatin'
81+
id 'sift-api-platform'
82+
name 'Sift API Platform Team'
8483
}
8584
}
8685
scm {
@@ -121,37 +120,6 @@ publishing {
121120
last.parent().appendNode('description', 'Sift Science Java API')
122121
last + pomConfig
123122
}
124-
125-
// Sign the pom.xml.
126-
// pom.withXml {
127-
// def pomFile = file("${project.buildDir}/generated-pom.xml")
128-
// writeTo(pomFile)
129-
// def pomAscFile = signing.sign(pomFile).signatureFiles[0]
130-
// artifact(pomAscFile) {
131-
// classifier = null
132-
// extension = 'pom.asc'
133-
// }
134-
// pomFile.delete()
135-
// }
136-
137-
// Sign the artifacts.
138-
// project.tasks.signArchives.signatureFiles.each {
139-
// artifact(it) {
140-
// def matcher = it.file =~ /-(sources|javadoc)\.jar\.asc$/
141-
// def zipMatcher = it.file =~ /\.(zip|tar)\.asc$/
142-
// def extensionPrefix = 'jar'
143-
//// if (zipMatcher.find()) {
144-
//// extensionPrefix = zipMatcher.group(1)
145-
//// }
146-
// if (matcher.find()) {
147-
// classifier = matcher.group(1)
148-
// } else {
149-
// classifier = null
150-
// }
151-
//
152-
// extension = extensionPrefix + '.asc'
153-
// }
154-
// }
155123
}
156124
}
157125

@@ -168,12 +136,6 @@ publishing {
168136
}
169137
}
170138

171-
//model {
172-
// tasks.publishJarPublicationToStagingRepository {
173-
// dependsOn(project.tasks.signArchives)
174-
// }
175-
//}
176-
177139
signing {
178140
required { gradle.taskGraph.hasTask("publish") }
179141
sign publishing.publications.jar

0 commit comments

Comments
 (0)