Skip to content

Commit b45b7e1

Browse files
committed
chore: Remove StatsDemo
Signed-off-by: Timo Brandstätter <[email protected]>
1 parent 72a301a commit b45b7e1

File tree

5 files changed

+0
-204
lines changed

5 files changed

+0
-204
lines changed

platform-sdk/platform-apps/demos/StatsDemo/build.gradle.kts

Lines changed: 0 additions & 4 deletions
This file was deleted.

platform-sdk/platform-apps/demos/StatsDemo/src/main/java/com/swirlds/demo/stats/StatsDemoMain.java

Lines changed: 0 additions & 150 deletions
This file was deleted.

platform-sdk/platform-apps/demos/StatsDemo/src/main/java/module-info.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

platform-sdk/swirlds/build.gradle.kts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,42 +30,12 @@ tasks.jar {
3030
}
3131
}
3232

33-
// Copy this app () and the demo apps into 'sdk' folder
34-
val demoApp = configurations.dependencyScope("demoApp")
35-
36-
dependencies { demoApp(project(":StatsDemo")) }
37-
38-
val demoAppsRuntimeClasspath =
39-
configurations.resolvable("demoAppsRuntimeClasspath") {
40-
extendsFrom(demoApp.get())
41-
shouldResolveConsistentlyWith(configurations.mainRuntimeClasspath.get())
42-
attributes.attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
43-
attributes.attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.LIBRARY))
44-
attributes.attribute(
45-
LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE,
46-
objects.named(LibraryElements.JAR),
47-
)
48-
attributes.attribute(Attribute.of("javaModule", Boolean::class.javaObjectType), true)
49-
}
50-
val demoAppsJars =
51-
configurations.resolvable("demoAppsJars") {
52-
extendsFrom(demoApp.get(), configurations.internal.get())
53-
attributes.attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
54-
isTransitive = false // only the application Jars, not the dependencies
55-
}
56-
5733
tasks.register<Copy>("copyApps") {
5834
destinationDir = layout.projectDirectory.dir("../sdk").asFile
5935
from(tasks.jar) // 'swirlds.jar' goes in directly into 'sdk'
60-
into("data/apps") {
61-
// Copy built jar into `data/apps` and rename
62-
from(demoAppsJars)
63-
rename { "${it.substring(0, it.indexOf("-"))}.jar" }
64-
}
6536
into("data/lib") {
6637
// Copy dependencies into `sdk/data/lib`
6738
from(project.configurations.runtimeClasspath)
68-
from(demoAppsRuntimeClasspath.get().minus(demoAppsJars.get()))
6939
}
7040
}
7141

settings.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,4 @@ javaModules {
5555

5656
module("hedera-state-validator") { group = "com.hedera.hashgraph" }
5757

58-
// Platform demo applications
59-
directory("platform-sdk/platform-apps/demos") { group = "com.hedera.hashgraph" }
6058
}

0 commit comments

Comments
 (0)