Skip to content

Commit f2bb38e

Browse files
authored
Merge pull request #102 from bric3/central-validation-failure-fixes
central validation failure fixes
2 parents d044a32 + 5819472 commit f2bb38e

File tree

8 files changed

+42
-30
lines changed

8 files changed

+42
-30
lines changed

build.gradle.kts

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,17 @@ tasks.create("v") {
5656
}
5757
}
5858

59-
val fireplaceModules = subprojects.filter { it.name != projects.fireplaceApp.name }
59+
val fireplaceModules = subprojects - project(":fireplace-app") - project(":fireplace-swt-experiment")
6060
configure(fireplaceModules) {
6161
apply(plugin = "java-library") // needed to get the java component
6262
apply(plugin = "maven-publish")
6363
apply(plugin = "signing")
6464
apply(plugin = "biz.aQute.bnd.builder")
6565

66-
// configure<JavaPluginExtension> {
67-
// withSourcesJar()
68-
// }
66+
configure<JavaPluginExtension> {
67+
withJavadocJar()
68+
withSourcesJar()
69+
}
6970

7071
repositories {
7172
mavenCentral()
@@ -84,15 +85,6 @@ configure(fireplaceModules) {
8485
metaInf.with(licenseSpec)
8586
}
8687

87-
// todo replace by java.withSourcesJar()
88-
val sourcesJar by registering(Jar::class) {
89-
archiveClassifier.set("sources")
90-
from(
91-
// take extension from project instance
92-
project.the<SourceSetContainer>().named("main").get().allJava
93-
)
94-
}
95-
9688
val jar = named<Jar>("jar") {
9789
bundle {
9890
val version by archiveVersion
@@ -138,9 +130,7 @@ configure(fireplaceModules) {
138130
publications {
139131
create<MavenPublication>("mavenJava") {
140132
from(components["java"])
141-
artifact(tasks["sourcesJar"])
142-
groupId = project.group.toString()
143-
artifactId = project.name
133+
144134
// OSSRH enforces the `-SNAPSHOT` suffix on snapshot repository
145135
// https://central.sonatype.org/faq/400-error/#question
146136
version = when {
@@ -149,19 +139,17 @@ configure(fireplaceModules) {
149139
}
150140
project.extra["publishingVersion"] = version
151141

152-
afterEvaluate {
153-
description = project.description
154-
}
155-
156142
val gitRepo = "https://github.com/bric3/fireplace"
157143
pom {
144+
name.set(project.name)
158145
url.set(gitRepo)
159146

160147
scm {
161148
connection.set("scm:git:${gitRepo}.git")
162149
developerConnection.set("scm:git:${gitRepo}.git")
163150
url.set(gitRepo)
164151
}
152+
165153
issueManagement {
166154
system.set("GitHub")
167155
url.set("https://github.com/spring-projects/spring-framework/issues")
@@ -174,7 +162,23 @@ configure(fireplaceModules) {
174162
url.set("https://www.mozilla.org/en-US/MPL/2.0/")
175163
}
176164
}
165+
166+
developers {
167+
developer {
168+
id.set("bric3")
169+
name.set("Brice Dutheil")
170+
email.set("brice.dutheil@gmail.com")
171+
}
172+
}
173+
}
174+
// subprojects properties (like description) will be available
175+
// after they have been configured
176+
afterEvaluate {
177+
pom {
178+
description.set(project.description)
179+
}
177180
}
181+
178182
}
179183
}
180184
repositories {
@@ -195,7 +199,6 @@ configure(fireplaceModules) {
195199
url = uri("${rootProject.buildDir}/publishing-repository")
196200
}
197201
project.extra["publishingRepositoryUrl"] = url
198-
199202
}
200203
}
201204
}

fireplace-app/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
fun properties(key: String) = project.findProperty(key).toString()
1212

13+
description = "Swing app that uses fireplace-swing"
14+
1315
plugins {
1416
id("application")
1517
id("com.github.johnrengelman.shadow") version "7.1.2"

fireplace-swing-animation/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* License, v. 2.0. If a copy of the MPL was not distributed with this
88
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
99
*/
10+
description = "Animate zoom transitions of a flamegraph or iciclegraph swing component"
11+
1012
dependencies {
1113
implementation(projects.fireplaceSwing)
1214
implementation(libs.radiance.animation)

fireplace-swing/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* License, v. 2.0. If a copy of the MPL was not distributed with this
88
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
99
*/
10+
description = "Flamegraph or iciclegraph swing component"
11+
1012
plugins {
1113
`jvm-test-suite`
1214
}

fireplace-swing/src/main/java/io/github/bric3/fireplace/flamegraph/FlamegraphImage.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
*
4242
* ImageIO.write(image, "png", new File("flamegraph.png"));
4343
* </code></pre>
44-
* </p>
4544
*
4645
* @param <T> The type of the node data.
4746
* @see FlamegraphView
@@ -61,7 +60,6 @@ public class FlamegraphImage<T> {
6160
* like the type of events, their number, etc.</li>
6261
* <li>The frame background and foreground colors</li>
6362
* </ul>
64-
* </p>
6563
*
6664
* @param frameTextsProvider The function to display label in frames.
6765
* @param frameColorProvider The frame to background color function.
@@ -132,11 +130,11 @@ public RenderedImage generate(FrameModel<T> frameModel, FlamegraphView.Mode mode
132130
* And finally, the renderer will use the graphics handle to draw the graph.
133131
* </p>
134132
*
135-
* @param frameModel The frame model to render.
136-
* @param mode The display mode of the graph.
137-
* @param width The wanted width of the image, the height is computed from this width.
138-
* @param g2 The graphics context to render to.
139-
* @param onHeightComputed Callback when the height has been computed.
133+
* @param frameModel The frame model to render.
134+
* @param mode The display mode of the graph.
135+
* @param width The wanted width of the image, the height is computed from this width.
136+
* @param g2 The graphics context to render to.
137+
* @param onHeightComputed Callback when the height has been computed.
140138
*/
141139
public void generate(
142140
FrameModel<T> frameModel,

fireplace-swing/src/main/java/io/github/bric3/fireplace/flamegraph/FlamegraphView.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* )
6767
* )
6868
* </code></pre>
69-
* </p>
69+
*
7070
* <p>
7171
* The created and <em>final</em> {@code component} is a composite that is based
7272
* on a {@link JScrollPane}.
@@ -290,6 +290,8 @@ public void setBackground(Color bg) {
290290

291291
/**
292292
* Experimental configuration hook for the underlying canvas.
293+
*
294+
* @param canvasConfigurer The configurer for the canvas.
293295
*/
294296
public void configureCanvas(Consumer<JComponent> canvasConfigurer) {
295297
Objects.requireNonNull(canvasConfigurer).accept(canvas);
@@ -490,7 +492,7 @@ public void setSelectedFrameConsumer(BiConsumer<FrameBox<T>, MouseEvent> consume
490492
public void setHoverListener(HoverListener<T> hoverListener) {
491493
scrollPaneListener.setHoverListener(hoverListener);
492494
}
493-
495+
494496
/**
495497
* Sets the {@link FrameModel}.
496498
*

fireplace-swing/src/main/java/io/github/bric3/fireplace/flamegraph/FrameModel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public FrameModel(List<FrameBox<T>> frames) {
5858
* which is referred to as <em>node</em>.
5959
* </p>.
6060
*
61+
* @param title The title of the flamegraph, used in the root frame.
6162
* @param frameEquality Custom equality code for the actual node object {@code T}.
6263
* @param frames The list of {@code FrameBox} objects.
6364
*/

fireplace-swt-experiment/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
1212

1313
fun properties(key: String) = project.findProperty(key).toString()
1414

15+
description = "SWT app that uses fireplace-swing"
16+
1517
plugins {
1618
id("application")
1719
}

0 commit comments

Comments
 (0)