Skip to content

Commit 9d6e552

Browse files
committed
Fixed group linking so now it can be build locally
1 parent 2e1ac47 commit 9d6e552

File tree

12 files changed

+45
-15
lines changed

12 files changed

+45
-15
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ compose.desktop {
5353

5454
jvmArgs(
5555
*listOf(
56+
Pair("processing.group", group),
5657
Pair("processing.version", rootProject.version),
5758
Pair("processing.revision", findProperty("revision") ?: Int.MAX_VALUE),
5859
Pair("processing.contributions.source", "https://contributions.processing.org/contribs"),

app/src/processing/app/gradle/GradleJob.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ class GradleJob(
9292
}
9393
return@map code.fileName
9494
}
95+
val group = System.getProperty("processing.group", "org.processing")
9596
// Collect the variables to pass to gradle
9697
val variables = mapOf(
97-
"group" to System.getProperty("processing.group", "org.processing"),
98+
"group" to group,
9899
"version" to getVersionName(),
99100
"sketchFolder" to sketchFolder,
100101
"sketchbook" to getSketchbookFolder(),
@@ -173,7 +174,7 @@ class GradleJob(
173174
"Processing Java",
174175
"The Processing Java mode for Gradle",
175176
null,
176-
"org.processing.java",
177+
"$group.java",
177178
getVersionName()
178179
))
179180
val propertiesFile = sketchFolder.resolve(Sketch.PROPERTIES_NAME)

app/src/processing/app/gradle/GradlePlugin.kt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,22 @@ data class GradlePlugin(
1212
val version: String){
1313
companion object{
1414
const val PROPERTIES_KEY = "sketch.plugins"
15-
val plugins = mutableStateListOf<GradlePlugin>(
16-
GradlePlugin("Hot Reload", "Automatically apply changes in your sketch upon saving", null, "org.processing.java.hotreload", Base.getVersionName()),
17-
GradlePlugin("Android","Run your sketch on an Android device", null, "org.processing.android", Base.getVersionName()),
15+
val group = System.getProperty("processing.group", "org.processing")
16+
val plugins = mutableStateListOf(
17+
GradlePlugin(
18+
"Hot Reload",
19+
"Automatically apply changes in your sketch upon saving",
20+
null,
21+
"$group.java.hotreload",
22+
Base.getVersionName()
23+
),
24+
GradlePlugin(
25+
"Android",
26+
"Run your sketch on an Android device",
27+
null,
28+
"$group.android",
29+
Base.getVersionName()
30+
),
1831
)
1932
}
2033
}

core/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ publishing{
4646

4747
mavenPublishing{
4848
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
49-
signAllPublications()
49+
if (project.hasProperty("signingInMemoryKey")) {
50+
signAllPublications()
51+
}
52+
5053

5154
pom{
5255
name.set("Processing Core")

gradle.properties

Whitespace-only changes.

java/gradle/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ gradlePlugin{
2626
vcsUrl = "https://github.com/processing/processing4"
2727
plugins{
2828
create("processing.java"){
29-
id = "$group.java"
29+
id = "${project(":java").group}.java"
3030
displayName = "Processing Plugin"
3131
description = "Gradle plugin for building Processing sketches"
3232
tags = listOf("processing", "sketch", "dsl")
@@ -44,8 +44,6 @@ publishing{
4444
}
4545
}
4646
}
47-
// Grab the group before running tests, since the group is used in the test configuration and may be modified by the publishing configuration
48-
val testGroup = group.toString()
4947
tasks.withType<Test>().configureEach {
50-
systemProperty("project.group", testGroup)
48+
systemProperty("project.group", project(":java").group)
5149
}

java/gradle/hotreload/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies{
1717
gradlePlugin{
1818
plugins{
1919
create("processing.java.hotreload"){
20-
id = "org.processing.java.hotreload"
20+
id = "${project(":java").group}.java.hotreload"
2121
implementationClass = "org.processing.java.gradle.ProcessingHotReloadPlugin"
2222
}
2323
}

java/libraries/dxf/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ sourceSets {
3232

3333
mavenPublishing {
3434
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
35-
signAllPublications()
35+
if (project.hasProperty("signingInMemoryKey")) {
36+
signAllPublications()
37+
}
38+
3639
coordinates("$group.core", name, version.toString())
3740

3841
pom {

java/libraries/net/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ mavenPublishing {
5353
coordinates("$group.core", name, version.toString())
5454
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
5555

56-
signAllPublications()
56+
if (project.hasProperty("signingInMemoryKey")) {
57+
signAllPublications()
58+
}
59+
5760

5861
pom {
5962
name.set("Processing Net")

java/libraries/pdf/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ mavenPublishing{
5555
coordinates("$group.core", name, version.toString())
5656
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
5757

58-
signAllPublications()
58+
if (project.hasProperty("signingInMemoryKey")) {
59+
signAllPublications()
60+
}
61+
5962

6063
pom{
6164
name.set("Processing PDF")

0 commit comments

Comments
 (0)