mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
build.gradle.kts: moved publishing related configuration to precompiled script plugin
This commit is contained in:
@@ -22,3 +22,13 @@ plugins {
|
|||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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" )
|
||||||
|
}
|
||||||
|
|||||||
116
buildSrc/src/main/kotlin/flatlaf-publish.gradle.kts
Normal file
116
buildSrc/src/main/kotlin/flatlaf-publish.gradle.kts
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2020 FormDev Software GmbH
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
open class PublishExtension {
|
||||||
|
var artifactId: String? = null
|
||||||
|
var name: String? = null
|
||||||
|
var description: String? = null
|
||||||
|
}
|
||||||
|
|
||||||
|
val extension = project.extensions.create<PublishExtension>( "flatlafPublish" )
|
||||||
|
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
`maven-publish`
|
||||||
|
id( "com.jfrog.bintray" )
|
||||||
|
id( "com.jfrog.artifactory" )
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>( "maven" ) {
|
||||||
|
afterEvaluate {
|
||||||
|
artifactId = extension.artifactId
|
||||||
|
}
|
||||||
|
groupId = "com.formdev"
|
||||||
|
|
||||||
|
from( components["java"] )
|
||||||
|
|
||||||
|
pom {
|
||||||
|
afterEvaluate {
|
||||||
|
this@pom.name.set( extension.name )
|
||||||
|
this@pom.description.set( extension.description )
|
||||||
|
}
|
||||||
|
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
||||||
|
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name.set( "The Apache License, Version 2.0" )
|
||||||
|
url.set( "https://www.apache.org/licenses/LICENSE-2.0.txt" )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
name.set( "Karl Tauber" )
|
||||||
|
organization.set( "FormDev Software GmbH" )
|
||||||
|
organizationUrl.set( "https://www.formdev.com/" )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
scm {
|
||||||
|
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bintray {
|
||||||
|
user = rootProject.extra["bintray.user"] as String?
|
||||||
|
key = rootProject.extra["bintray.key"] as String?
|
||||||
|
|
||||||
|
setPublications( "maven" )
|
||||||
|
|
||||||
|
with( pkg ) {
|
||||||
|
repo = "flatlaf"
|
||||||
|
afterEvaluate {
|
||||||
|
this@with.name = extension.artifactId
|
||||||
|
}
|
||||||
|
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 {
|
||||||
|
setContextUrl( "https://oss.jfrog.org" )
|
||||||
|
|
||||||
|
publish( closureOf<org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig> {
|
||||||
|
repository( delegateClosureOf<groovy.lang.GroovyObject> {
|
||||||
|
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> {
|
||||||
|
invokeMethod( "publications", "maven" )
|
||||||
|
setProperty( "publishArtifacts", true )
|
||||||
|
setProperty( "publishPom", true )
|
||||||
|
} )
|
||||||
|
} )
|
||||||
|
|
||||||
|
resolve( delegateClosureOf<org.jfrog.gradle.plugin.artifactory.dsl.ResolverConfig> {
|
||||||
|
setProperty( "repoKey", "jcenter" )
|
||||||
|
} )
|
||||||
|
}
|
||||||
@@ -18,9 +18,7 @@ plugins {
|
|||||||
`java-library`
|
`java-library`
|
||||||
`flatlaf-module-info`
|
`flatlaf-module-info`
|
||||||
`flatlaf-java9`
|
`flatlaf-java9`
|
||||||
`maven-publish`
|
`flatlaf-publish`
|
||||||
id( "com.jfrog.bintray" )
|
|
||||||
id( "com.jfrog.artifactory" )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
@@ -55,81 +53,8 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
flatlafPublish {
|
||||||
publications {
|
artifactId = "flatlaf"
|
||||||
create<MavenPublication>( "maven" ) {
|
name = "FlatLaf"
|
||||||
artifactId = "flatlaf"
|
description = "Flat Look and Feel"
|
||||||
groupId = "com.formdev"
|
|
||||||
|
|
||||||
from( components["java"] )
|
|
||||||
|
|
||||||
pom {
|
|
||||||
name.set( "FlatLaf" )
|
|
||||||
description.set( "Flat Look and Feel" )
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
|
|
||||||
licenses {
|
|
||||||
license {
|
|
||||||
name.set( "The Apache License, Version 2.0" )
|
|
||||||
url.set( "https://www.apache.org/licenses/LICENSE-2.0.txt" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
developers {
|
|
||||||
developer {
|
|
||||||
name.set( "Karl Tauber" )
|
|
||||||
organization.set( "FormDev Software GmbH" )
|
|
||||||
organizationUrl.set( "https://www.formdev.com/" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
scm {
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bintray {
|
|
||||||
user = rootProject.extra["bintray.user"] as String?
|
|
||||||
key = rootProject.extra["bintray.key"] as String?
|
|
||||||
|
|
||||||
setPublications( "maven" )
|
|
||||||
|
|
||||||
with( pkg ) {
|
|
||||||
repo = "flatlaf"
|
|
||||||
name = "flatlaf"
|
|
||||||
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 {
|
|
||||||
setContextUrl( "https://oss.jfrog.org" )
|
|
||||||
|
|
||||||
publish( closureOf<org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig> {
|
|
||||||
repository( delegateClosureOf<groovy.lang.GroovyObject> {
|
|
||||||
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> {
|
|
||||||
invokeMethod( "publications", "maven" )
|
|
||||||
setProperty( "publishArtifacts", true )
|
|
||||||
setProperty( "publishPom", true )
|
|
||||||
} )
|
|
||||||
} )
|
|
||||||
|
|
||||||
resolve( delegateClosureOf<org.jfrog.gradle.plugin.artifactory.dsl.ResolverConfig> {
|
|
||||||
setProperty( "repoKey", "jcenter" )
|
|
||||||
} )
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,7 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
`maven-publish`
|
`flatlaf-publish`
|
||||||
id( "com.jfrog.bintray" )
|
|
||||||
id( "com.jfrog.artifactory" )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -41,81 +39,8 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
flatlafPublish {
|
||||||
publications {
|
artifactId = "flatlaf-extras"
|
||||||
create<MavenPublication>( "maven" ) {
|
name = "FlatLaf Extras"
|
||||||
artifactId = "flatlaf-extras"
|
description = "Flat Look and Feel Extras"
|
||||||
groupId = "com.formdev"
|
|
||||||
|
|
||||||
from( components["java"] )
|
|
||||||
|
|
||||||
pom {
|
|
||||||
name.set( "FlatLaf Extras" )
|
|
||||||
description.set( "Flat Look and Feel Extras" )
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
|
|
||||||
licenses {
|
|
||||||
license {
|
|
||||||
name.set( "The Apache License, Version 2.0" )
|
|
||||||
url.set( "https://www.apache.org/licenses/LICENSE-2.0.txt" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
developers {
|
|
||||||
developer {
|
|
||||||
name.set( "Karl Tauber" )
|
|
||||||
organization.set( "FormDev Software GmbH" )
|
|
||||||
organizationUrl.set( "https://www.formdev.com/" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
scm {
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bintray {
|
|
||||||
user = rootProject.extra["bintray.user"] as String?
|
|
||||||
key = rootProject.extra["bintray.key"] as String?
|
|
||||||
|
|
||||||
setPublications( "maven" )
|
|
||||||
|
|
||||||
with( pkg ) {
|
|
||||||
repo = "flatlaf"
|
|
||||||
name = "flatlaf-extras"
|
|
||||||
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 {
|
|
||||||
setContextUrl( "https://oss.jfrog.org" )
|
|
||||||
|
|
||||||
publish( closureOf<org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig> {
|
|
||||||
repository( delegateClosureOf<groovy.lang.GroovyObject> {
|
|
||||||
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> {
|
|
||||||
invokeMethod( "publications", "maven" )
|
|
||||||
setProperty( "publishArtifacts", true )
|
|
||||||
setProperty( "publishPom", true )
|
|
||||||
} )
|
|
||||||
} )
|
|
||||||
|
|
||||||
resolve( delegateClosureOf<org.jfrog.gradle.plugin.artifactory.dsl.ResolverConfig> {
|
|
||||||
setProperty( "repoKey", "jcenter" )
|
|
||||||
} )
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,9 +17,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
`flatlaf-module-info`
|
`flatlaf-module-info`
|
||||||
`maven-publish`
|
`flatlaf-publish`
|
||||||
id( "com.jfrog.bintray" )
|
|
||||||
id( "com.jfrog.artifactory" )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -45,81 +43,8 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
flatlafPublish {
|
||||||
publications {
|
artifactId = "flatlaf-intellij-themes"
|
||||||
create<MavenPublication>( "maven" ) {
|
name = "FlatLaf IntelliJ Themes Pack"
|
||||||
artifactId = "flatlaf-intellij-themes"
|
description = "Flat Look and Feel IntelliJ Themes Pack"
|
||||||
groupId = "com.formdev"
|
|
||||||
|
|
||||||
from( components["java"] )
|
|
||||||
|
|
||||||
pom {
|
|
||||||
name.set( "FlatLaf IntelliJ Themes Pack" )
|
|
||||||
description.set( "Flat Look and Feel IntelliJ Themes Pack" )
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
|
|
||||||
licenses {
|
|
||||||
license {
|
|
||||||
name.set( "The Apache License, Version 2.0" )
|
|
||||||
url.set( "https://www.apache.org/licenses/LICENSE-2.0.txt" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
developers {
|
|
||||||
developer {
|
|
||||||
name.set( "Karl Tauber" )
|
|
||||||
organization.set( "FormDev Software GmbH" )
|
|
||||||
organizationUrl.set( "https://www.formdev.com/" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
scm {
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bintray {
|
|
||||||
user = rootProject.extra["bintray.user"] as String?
|
|
||||||
key = rootProject.extra["bintray.key"] as String?
|
|
||||||
|
|
||||||
setPublications( "maven" )
|
|
||||||
|
|
||||||
with( pkg ) {
|
|
||||||
repo = "flatlaf"
|
|
||||||
name = "flatlaf-intellij-themes"
|
|
||||||
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 {
|
|
||||||
setContextUrl( "https://oss.jfrog.org" )
|
|
||||||
|
|
||||||
publish( closureOf<org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig> {
|
|
||||||
repository( delegateClosureOf<groovy.lang.GroovyObject> {
|
|
||||||
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> {
|
|
||||||
invokeMethod( "publications", "maven" )
|
|
||||||
setProperty( "publishArtifacts", true )
|
|
||||||
setProperty( "publishPom", true )
|
|
||||||
} )
|
|
||||||
} )
|
|
||||||
|
|
||||||
resolve( delegateClosureOf<org.jfrog.gradle.plugin.artifactory.dsl.ResolverConfig> {
|
|
||||||
setProperty( "repoKey", "jcenter" )
|
|
||||||
} )
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,7 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
`maven-publish`
|
`flatlaf-publish`
|
||||||
id( "com.jfrog.bintray" )
|
|
||||||
id( "com.jfrog.artifactory" )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -41,81 +39,8 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
flatlafPublish {
|
||||||
publications {
|
artifactId = "flatlaf-jide-oss"
|
||||||
create<MavenPublication>( "maven" ) {
|
name = "FlatLaf addon for JIDE Common Layer"
|
||||||
artifactId = "flatlaf-jide-oss"
|
description = "Flat Look and Feel addon for JIDE Common Layer"
|
||||||
groupId = "com.formdev"
|
|
||||||
|
|
||||||
from( components["java"] )
|
|
||||||
|
|
||||||
pom {
|
|
||||||
name.set( "FlatLaf addon for JIDE Common Layer" )
|
|
||||||
description.set( "Flat Look and Feel addon for JIDE Common Layer" )
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
|
|
||||||
licenses {
|
|
||||||
license {
|
|
||||||
name.set( "The Apache License, Version 2.0" )
|
|
||||||
url.set( "https://www.apache.org/licenses/LICENSE-2.0.txt" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
developers {
|
|
||||||
developer {
|
|
||||||
name.set( "Karl Tauber" )
|
|
||||||
organization.set( "FormDev Software GmbH" )
|
|
||||||
organizationUrl.set( "https://www.formdev.com/" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
scm {
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bintray {
|
|
||||||
user = rootProject.extra["bintray.user"] as String?
|
|
||||||
key = rootProject.extra["bintray.key"] as String?
|
|
||||||
|
|
||||||
setPublications( "maven" )
|
|
||||||
|
|
||||||
with( pkg ) {
|
|
||||||
repo = "flatlaf"
|
|
||||||
name = "flatlaf-jide-oss"
|
|
||||||
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 {
|
|
||||||
setContextUrl( "https://oss.jfrog.org" )
|
|
||||||
|
|
||||||
publish( closureOf<org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig> {
|
|
||||||
repository( delegateClosureOf<groovy.lang.GroovyObject> {
|
|
||||||
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> {
|
|
||||||
invokeMethod( "publications", "maven" )
|
|
||||||
setProperty( "publishArtifacts", true )
|
|
||||||
setProperty( "publishPom", true )
|
|
||||||
} )
|
|
||||||
} )
|
|
||||||
|
|
||||||
resolve( delegateClosureOf<org.jfrog.gradle.plugin.artifactory.dsl.ResolverConfig> {
|
|
||||||
setProperty( "repoKey", "jcenter" )
|
|
||||||
} )
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,7 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
`maven-publish`
|
`flatlaf-publish`
|
||||||
id( "com.jfrog.bintray" )
|
|
||||||
id( "com.jfrog.artifactory" )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -41,81 +39,8 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
flatlafPublish {
|
||||||
publications {
|
artifactId = "flatlaf-swingx"
|
||||||
create<MavenPublication>( "maven" ) {
|
name = "FlatLaf addon for SwingX"
|
||||||
artifactId = "flatlaf-swingx"
|
description = "Flat Look and Feel addon for SwingX"
|
||||||
groupId = "com.formdev"
|
|
||||||
|
|
||||||
from( components["java"] )
|
|
||||||
|
|
||||||
pom {
|
|
||||||
name.set( "FlatLaf addon for SwingX" )
|
|
||||||
description.set( "Flat Look and Feel addon for SwingX" )
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
|
|
||||||
licenses {
|
|
||||||
license {
|
|
||||||
name.set( "The Apache License, Version 2.0" )
|
|
||||||
url.set( "https://www.apache.org/licenses/LICENSE-2.0.txt" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
developers {
|
|
||||||
developer {
|
|
||||||
name.set( "Karl Tauber" )
|
|
||||||
organization.set( "FormDev Software GmbH" )
|
|
||||||
organizationUrl.set( "https://www.formdev.com/" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
scm {
|
|
||||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bintray {
|
|
||||||
user = rootProject.extra["bintray.user"] as String?
|
|
||||||
key = rootProject.extra["bintray.key"] as String?
|
|
||||||
|
|
||||||
setPublications( "maven" )
|
|
||||||
|
|
||||||
with( pkg ) {
|
|
||||||
repo = "flatlaf"
|
|
||||||
name = "flatlaf-swingx"
|
|
||||||
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 {
|
|
||||||
setContextUrl( "https://oss.jfrog.org" )
|
|
||||||
|
|
||||||
publish( closureOf<org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig> {
|
|
||||||
repository( delegateClosureOf<groovy.lang.GroovyObject> {
|
|
||||||
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> {
|
|
||||||
invokeMethod( "publications", "maven" )
|
|
||||||
setProperty( "publishArtifacts", true )
|
|
||||||
setProperty( "publishPom", true )
|
|
||||||
} )
|
|
||||||
} )
|
|
||||||
|
|
||||||
resolve( delegateClosureOf<org.jfrog.gradle.plugin.artifactory.dsl.ResolverConfig> {
|
|
||||||
setProperty( "repoKey", "jcenter" )
|
|
||||||
} )
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ include( "flatlaf-theme-editor" )
|
|||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
plugins {
|
plugins {
|
||||||
|
// NOTE: keep plugin versions in sync with buildSrc/build.gradle.kts
|
||||||
id( "com.jfrog.bintray" ) version "1.8.4"
|
id( "com.jfrog.bintray" ) version "1.8.4"
|
||||||
id( "com.jfrog.artifactory" ) version "4.13.0"
|
id( "com.jfrog.artifactory" ) version "4.13.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user