You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh "./gradlew $gradleArgs$internalRepoArgs$uploadRepoArgs-PversionPostFix=$versionPostfixuploadArchives"
63
+
sh "./gradlew $gradleArgs$gitlabRepoArgs-PversionPostFix=$versionPostfixpublishMavenJavaPublicationToGitLabRepository"
73
64
}
74
65
}
75
66
76
-
stage('upload-to-bintray') {
67
+
stage('upload-to-central') {
77
68
when { expression { return isPublish } }
78
69
environment {
79
-
BINTRAY_URL= credentials('bintray_url')
80
-
BINTRAY_LOGIN= credentials('bintray_login')
70
+
OSSRH_LOGIN= credentials('ossrh-login')
81
71
}
82
72
steps {
83
73
googlechatnotification url: 'id:gchat_java',
84
-
message: "*Publishing* ${currentBuild.fullDisplayName} to Bintray...\n${env.BUILD_URL}"
74
+
message: "*Publishing* ${currentBuild.fullDisplayName} to Central...\n${env.BUILD_URL}"
85
75
86
76
// Note: supply internal repo as tests use native dependencies that might not be published, yet.
87
-
sh "./gradlew $gradleArgs$internalRepoArgs$uploadRepoArgsBintray uploadArchives"
77
+
sh "./gradlew $gradleArgs$gitlabRepoArgs$uploadRepoArgsCentral publishMavenJavaPublicationToSonatypeRepository closeAndReleaseStagingRepository"
88
78
89
79
googlechatnotification url: 'id:gchat_java',
90
-
message: "Published ${currentBuild.fullDisplayName} successfully to Bintray - check https://bintray.com/objectbox/objectbox\n${env.BUILD_URL}"
80
+
message: "Published ${currentBuild.fullDisplayName} successfully to Central - check https://repo1.maven.org/maven2/io/objectbox/ in a few minutes.\n${env.BUILD_URL}"
0 commit comments