File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 42
42
run : ./gradlew clean build
43
43
44
44
- name : Publish package
45
- run : ./gradlew publishToSonatype
45
+ run : ./gradlew publishToCentralPortal
46
46
env :
47
47
SONATYPE_USERNAME : ${{ secrets.NEXUS_USERNAME }}
48
48
SONATYPE_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
Original file line number Diff line number Diff line change
1
+ import net.thebugmc.gradle.sonatypepublisher.PublishingType
2
+
1
3
plugins {
2
4
id(" java-library" )
3
- id(" eu.kakde .gradle.sonatype-maven- central-publisher" ) version " 1.0.6 "
5
+ id(" net.thebugmc .gradle.sonatype-central-portal- publisher" ) version " 1.2.4 "
4
6
id(" maven-publish" )
5
7
id(" signing" )
6
8
}
@@ -76,15 +78,11 @@ publishing {
76
78
}
77
79
}
78
80
79
- sonatypeCentralPublishExtension {
80
- groupId.set(project.group.toString())
81
- artifactId.set(" keepassxc-proxy-access" )
82
- version.set(project.version.toString())
83
- componentType.set(" java" )
84
- publishingType.set(" USER_MANAGED" )
81
+ centralPortal {
82
+ publishingType.set(PublishingType .USER_MANAGED )
85
83
86
- username.set(sonatypeUsername)
87
- password.set(sonatypePassword)
84
+ centralPortal. username.set(sonatypeUsername)
85
+ centralPortal. password.set(sonatypePassword)
88
86
89
87
// Configure POM metadata
90
88
pom {
You can’t perform that action at this time.
0 commit comments