mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
dropped usage of bintray, jcenter and jfrog artifactory
deploy to Sonatype OSSRH snapshots are now here: https://oss.sonatype.org/content/repositories/snapshots/com/formdev/
This commit is contained in:
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@@ -99,11 +99,11 @@ jobs:
|
|||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
restore-keys: ${{ runner.os }}-gradle
|
restore-keys: ${{ runner.os }}-gradle
|
||||||
|
|
||||||
- name: Publish snapshot to oss.jfrog.org
|
- name: Publish snapshot to oss.sonatype.org
|
||||||
run: ./gradlew artifactoryPublish
|
run: ./gradlew publish -Dorg.gradle.internal.publish.checksums.insecure=true
|
||||||
env:
|
env:
|
||||||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
|
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
|
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
||||||
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@@ -135,8 +135,10 @@ jobs:
|
|||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
restore-keys: ${{ runner.os }}-gradle
|
restore-keys: ${{ runner.os }}-gradle
|
||||||
|
|
||||||
- name: Release a new stable version to bintray
|
- name: Release a new stable version to Maven Central
|
||||||
run: ./gradlew bintrayUpload -Drelease=true
|
run: ./gradlew publish -Drelease=true
|
||||||
env:
|
env:
|
||||||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
|
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
|
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
||||||
|
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
|
||||||
|
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
|
||||||
|
|||||||
@@ -53,11 +53,11 @@ Otherwise download `flatlaf-<version>.jar` here:
|
|||||||
|
|
||||||
### Snapshots
|
### Snapshots
|
||||||
|
|
||||||
FlatLaf snapshot binaries are available in
|
FlatLaf snapshot binaries are available on
|
||||||
[JFrog Artifactory](https://oss.jfrog.org/artifactory/oss-snapshot-local/com/formdev/).
|
[Sonatype OSSRH](https://oss.sonatype.org/content/repositories/snapshots/com/formdev/flatlaf/).
|
||||||
To access the latest snapshot, change the FlatLaf version(s) in the dependencies
|
To access the latest snapshot, change the FlatLaf version in your dependencies
|
||||||
to `<version>-SNAPSHOT` (e.g. `0.27-SNAPSHOT`) and add the repository
|
to `<version>-SNAPSHOT` (e.g. `0.27-SNAPSHOT`) and add the repository
|
||||||
`https://oss.jfrog.org/artifactory/oss-snapshot-local` to your build (see
|
`https://oss.sonatype.org/content/repositories/snapshots/` to your build (see
|
||||||
[Maven](https://maven.apache.org/guides/mini/guide-multiple-repositories.html)
|
[Maven](https://maven.apache.org/guides/mini/guide-multiple-repositories.html)
|
||||||
and
|
and
|
||||||
[Gradle](https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:declaring_custom_repository)
|
[Gradle](https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:declaring_custom_repository)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ allprojects {
|
|||||||
version = rootProject.version
|
version = rootProject.version
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,17 +40,6 @@ println( "Java ${System.getProperty( "java.version" )}" )
|
|||||||
println()
|
println()
|
||||||
|
|
||||||
|
|
||||||
extra["bintray.user"] = System.getenv( "BINTRAY_USER" ) ?: System.getProperty( "bintray.user" )
|
|
||||||
extra["bintray.key"] = System.getenv( "BINTRAY_KEY" ) ?: System.getProperty( "bintray.key" )
|
|
||||||
|
|
||||||
// if true, do not upload to bintray
|
|
||||||
extra["bintray.dryRun"] = false
|
|
||||||
|
|
||||||
// if true, uploaded artifacts are visible to all
|
|
||||||
// if false, only visible to owner when logged into bintray
|
|
||||||
extra["bintray.publish"] = false
|
|
||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
tasks {
|
tasks {
|
||||||
withType<JavaCompile>().configureEach {
|
withType<JavaCompile>().configureEach {
|
||||||
|
|||||||
@@ -20,15 +20,5 @@ plugins {
|
|||||||
|
|
||||||
// required for kotlin-dsl or embedded-kotlin plugins
|
// required for kotlin-dsl or embedded-kotlin plugins
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
// NOTE: keep plugin versions in sync with settings.gradle.kts
|
|
||||||
|
|
||||||
// "com.jfrog.bintray" plugin
|
|
||||||
implementation( "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4" )
|
|
||||||
|
|
||||||
// "com.jfrog.artifactory" plugin
|
|
||||||
implementation( "org.jfrog.buildinfo:build-info-extractor-gradle:4.13.0" )
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,8 +26,7 @@ val extension = project.extensions.create<PublishExtension>( "flatlafPublish" )
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
id( "com.jfrog.bintray" )
|
signing
|
||||||
id( "com.jfrog.artifactory" )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
@@ -74,49 +73,40 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
bintray {
|
repositories {
|
||||||
user = rootProject.extra["bintray.user"] as String?
|
maven {
|
||||||
key = rootProject.extra["bintray.key"] as String?
|
name = "OSSRH"
|
||||||
|
|
||||||
setPublications( "maven" )
|
val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||||
|
val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||||
|
url = uri( if( java.lang.Boolean.getBoolean( "release" ) ) releasesRepoUrl else snapshotsRepoUrl )
|
||||||
|
|
||||||
with( pkg ) {
|
credentials {
|
||||||
repo = "flatlaf"
|
// get from gradle.properties
|
||||||
afterEvaluate {
|
val ossrhUsername: String? by project
|
||||||
this@with.name = extension.artifactId
|
val ossrhPassword: String? by project
|
||||||
|
|
||||||
|
username = System.getenv( "OSSRH_USERNAME" ) ?: ossrhUsername
|
||||||
|
password = System.getenv( "OSSRH_PASSWORD" ) ?: ossrhPassword
|
||||||
}
|
}
|
||||||
setLicenses( "Apache-2.0" )
|
|
||||||
vcsUrl = "https://github.com/JFormDesigner/FlatLaf"
|
|
||||||
|
|
||||||
with( version ) {
|
|
||||||
name = project.version.toString()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
publish = rootProject.extra["bintray.publish"] as Boolean
|
|
||||||
dryRun = rootProject.extra["bintray.dryRun"] as Boolean
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
artifactory {
|
signing {
|
||||||
setContextUrl( "https://oss.jfrog.org" )
|
// get from gradle.properties
|
||||||
|
val signingKey: String? by project
|
||||||
|
val signingPassword: String? by project
|
||||||
|
|
||||||
publish( closureOf<org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig> {
|
val key = System.getenv( "SIGNING_KEY" ) ?: signingKey
|
||||||
repository( delegateClosureOf<groovy.lang.GroovyObject> {
|
val password = System.getenv( "SIGNING_PASSWORD" ) ?: signingPassword
|
||||||
setProperty( "repoKey", "oss-snapshot-local" )
|
|
||||||
setProperty( "username", rootProject.extra["bintray.user"] as String? )
|
|
||||||
setProperty( "password", rootProject.extra["bintray.key"] as String? )
|
|
||||||
} )
|
|
||||||
|
|
||||||
defaults( delegateClosureOf<groovy.lang.GroovyObject> {
|
useInMemoryPgpKeys( key, password )
|
||||||
invokeMethod( "publications", "maven" )
|
sign( publishing.publications["maven"] )
|
||||||
setProperty( "publishArtifacts", true )
|
}
|
||||||
setProperty( "publishPom", true )
|
|
||||||
} )
|
// disable signing of snapshots
|
||||||
} )
|
tasks.withType<Sign>().configureEach {
|
||||||
|
onlyIf { java.lang.Boolean.getBoolean( "release" ) }
|
||||||
resolve( delegateClosureOf<org.jfrog.gradle.plugin.artifactory.dsl.ResolverConfig> {
|
|
||||||
setProperty( "repoKey", "jcenter" )
|
|
||||||
} )
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,15 +16,6 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
id( "com.jfrog.bintray" )
|
|
||||||
|
|
||||||
// Although artifactory plugin is not used in this subproject, the plugin is required
|
|
||||||
// because otherwise gradle fails with following error:
|
|
||||||
// Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException:
|
|
||||||
// Cannot cast object 'task ':bintrayUpload''
|
|
||||||
// with class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask_Decorated'
|
|
||||||
// to class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask'
|
|
||||||
id( "com.jfrog.artifactory" )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -68,24 +59,3 @@ tasks {
|
|||||||
} )
|
} )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bintray {
|
|
||||||
user = rootProject.extra["bintray.user"] as String?
|
|
||||||
key = rootProject.extra["bintray.key"] as String?
|
|
||||||
|
|
||||||
setConfigurations( "archives" )
|
|
||||||
|
|
||||||
with( pkg ) {
|
|
||||||
repo = "flatlaf"
|
|
||||||
name = "flatlaf-demo"
|
|
||||||
setLicenses( "Apache-2.0" )
|
|
||||||
vcsUrl = "https://github.com/JFormDesigner/FlatLaf"
|
|
||||||
|
|
||||||
with( version ) {
|
|
||||||
name = project.version.toString()
|
|
||||||
}
|
|
||||||
|
|
||||||
publish = rootProject.extra["bintray.publish"] as Boolean
|
|
||||||
dryRun = rootProject.extra["bintray.dryRun"] as Boolean
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -24,11 +24,3 @@ include( "flatlaf-intellij-themes" )
|
|||||||
include( "flatlaf-demo" )
|
include( "flatlaf-demo" )
|
||||||
include( "flatlaf-testing" )
|
include( "flatlaf-testing" )
|
||||||
include( "flatlaf-theme-editor" )
|
include( "flatlaf-theme-editor" )
|
||||||
|
|
||||||
pluginManagement {
|
|
||||||
plugins {
|
|
||||||
// NOTE: keep plugin versions in sync with buildSrc/build.gradle.kts
|
|
||||||
id( "com.jfrog.bintray" ) version "1.8.4"
|
|
||||||
id( "com.jfrog.artifactory" ) version "4.13.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user