mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-27 03:46:17 -06:00
migrate from legacy OSSRH to Central Portal
https://central.sonatype.org/faq/what-is-different-between-central-portal-and-legacy-ossrh/ using Portal OSSRH Staging API https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
import net.ltgt.gradle.errorprone.errorprone
|
||||
|
||||
group = "com.formdev"
|
||||
version = property( if( hasProperty( "release" ) ) "flatlaf.releaseVersion" else "flatlaf.developmentVersion" ) as String
|
||||
|
||||
// for PR snapshots change version to 'PR-<pr_number>-SNAPSHOT'
|
||||
@@ -49,6 +50,7 @@ println()
|
||||
|
||||
|
||||
plugins {
|
||||
alias( libs.plugins.gradle.nexus.publish.plugin )
|
||||
alias( libs.plugins.errorprone ) apply false
|
||||
}
|
||||
|
||||
@@ -143,3 +145,20 @@ allprojects {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nexusPublishing {
|
||||
repositories {
|
||||
sonatype {
|
||||
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/
|
||||
nexusUrl = uri( "https://ossrh-staging-api.central.sonatype.com/service/local/" )
|
||||
snapshotRepositoryUrl = uri( "https://central.sonatype.com/repository/maven-snapshots/" )
|
||||
|
||||
// get from gradle.properties
|
||||
val sonatypeUsername: String? by project
|
||||
val sonatypePassword: String? by project
|
||||
|
||||
username = System.getenv( "SONATYPE_USERNAME" ) ?: sonatypeUsername
|
||||
password = System.getenv( "SONATYPE_PASSWORD" ) ?: sonatypePassword
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user