Skip to content

Commit d4051b3

Browse files
geoandclaude
andcommitted
Add Gradle build support to load-super-heroes
The Gradle variant of the workshop references ./gradlew build for load-super-heroes, but the project only had a Maven pom.xml. Added build.gradle.kts, settings.gradle.kts, gradle.properties, and the Gradle wrapper so the Gradle workshop instructions work correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c6bda21 commit d4051b3

7 files changed

Lines changed: 399 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
plugins {
2+
java
3+
id("io.quarkus")
4+
}
5+
6+
repositories {
7+
mavenCentral()
8+
mavenLocal()
9+
}
10+
11+
val quarkusPlatformGroupId: String by project
12+
val quarkusPlatformArtifactId: String by project
13+
val quarkusPlatformVersion: String by project
14+
15+
dependencies {
16+
implementation(enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}"))
17+
implementation("io.quarkus:quarkus-picocli")
18+
implementation("io.quarkus:quarkus-arc")
19+
implementation("io.quarkus:quarkus-rest-client-jackson")
20+
implementation("io.quarkus:quarkus-container-image-docker")
21+
implementation("io.quarkus:quarkus-scheduler")
22+
implementation("net.datafaker:datafaker:2.4.1")
23+
}
24+
25+
group = "org.acme"
26+
version = "1.0.0-SNAPSHOT"
27+
28+
java {
29+
sourceCompatibility = JavaVersion.VERSION_17
30+
targetCompatibility = JavaVersion.VERSION_17
31+
}
32+
33+
tasks.withType<Test> {
34+
exclude("**/*IT.class")
35+
}
36+
tasks.withType<JavaCompile> {
37+
options.encoding = "UTF-8"
38+
options.compilerArgs.add("-parameters")
39+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Gradle properties
2+
3+
quarkusPluginId=io.quarkus
4+
quarkusPluginVersion=3.33.2
5+
quarkusPlatformGroupId=io.quarkus.platform
6+
quarkusPlatformArtifactId=quarkus-bom
7+
quarkusPlatformVersion=3.33.2
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionSha256Sum=c72fb9991f6025cbe337d52ba77e531b3faf62bdd3e348fe1ccee9f51c71adb0
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-all.zip
5+
networkTimeout=10000
6+
retries=0
7+
retryBackOffMs=500
8+
validateDistributionUrl=true
9+
zipStoreBase=GRADLE_USER_HOME
10+
zipStorePath=wrapper/dists

quarkus-workshop-super-heroes/super-heroes/load-super-heroes/gradlew

Lines changed: 248 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

quarkus-workshop-super-heroes/super-heroes/load-super-heroes/gradlew.bat

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)