Skip to content

Commit 0bd3ee9

Browse files
update example apps
1 parent 657fc27 commit 0bd3ee9

File tree

14 files changed

+91
-34
lines changed

14 files changed

+91
-34
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ if (project == rootProject) {
1515
}
1616

1717
task javadocJar(type: Jar) {
18-
classifier = 'javadoc'
18+
archiveClassifier.set("javadoc")
1919
from javadoc
2020
}
2121

2222
task sourcesJar(type: Jar) {
23-
classifier = 'sources'
23+
archiveClassifier.set("sources")
2424
from sourceSets.main.allSource
2525
}
2626

@@ -156,9 +156,9 @@ dependencies {
156156
api("com.fasterxml.jackson.core:jackson-databind:$jackson_version")
157157
implementation("io.swagger.core.v3:swagger-annotations:$swagger_annotations_version")
158158

159-
implementation ("io.github.kawamuray.wasmtime:wasmtime-java:$wasmtime_version")
159+
implementation("io.github.kawamuray.wasmtime:wasmtime-java:$wasmtime_version")
160160

161-
implementation ("com.google.protobuf:protobuf-java:$protobuf_version")
161+
implementation("com.google.protobuf:protobuf-java:$protobuf_version")
162162

163163
compileOnly("org.projectlombok:lombok:$lombok_version")
164164

example-cloud/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,19 @@ being used
99

1010
Rerun the example after creating a feature and a variable and that will be shown
1111

12-
replace application.properties devcycle.sdkKey with your server SDK key
12+
replace application.properties devcycle.sdkKey with your server SDK key
13+
14+
## Run Example
15+
16+
To start the application run the following command:
17+
18+
```bash
19+
./gradlew buildDependents
20+
./gradlew bootRun
21+
```
22+
23+
Then access the website at: http://localhost:8080
24+
25+
## Run against local Java SDK
26+
27+
See instructions in `build.gradle` for how to run against a local version of the Java SDK.

example-cloud/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ dependencies {
2222
compileOnly('org.projectlombok:lombok:1.18.24')
2323

2424
// The line below makes the Example App use the production build of the Java Server SDK
25-
// implementation("com.devcycle:java-server-sdk:1.8.0")
25+
implementation("com.devcycle:java-server-sdk:1.8.0")
2626

2727
// The line below makes the Example App use the local version of the Java Server SDK
2828
// Run `./gradlew build` in the root directory (`cd .. && ./gradlew build`) to build the local version of the SDK
29-
implementation project(':java-server-sdk')
29+
// implementation project(':java-server-sdk')
3030

3131
testImplementation 'org.springframework.boot:spring-boot-starter-test'
3232
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

example-cloud/gradlew

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

example-cloud/gradlew.bat

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

example-local/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,19 @@ being used
99

1010
Rerun the example after creating a feature and a variable and that will be shown
1111

12-
replace application.properties devcycle.sdkKey with your server SDK key
12+
replace `application.properties` `devcycle.sdkKey` with your server SDK key
13+
14+
## Run Example
15+
16+
To start the application run the following command:
17+
18+
```bash
19+
./gradlew buildDependents
20+
./gradlew bootRun
21+
```
22+
23+
Then access the website at: http://localhost:8080
24+
25+
## Run against local Java SDK
26+
27+
See instructions in `build.gradle` for how to run against a local version of the Java SDK.

example-local/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626

2727
// The line below makes the Example App use the local version of the Java Server SDK
2828
// Run `./gradlew build` in the root directory (`cd .. && ./gradlew build`) to build the local version of the SDK
29-
//implementation project(':java-server-sdk')
29+
// implementation project(':java-server-sdk')
3030

3131
testImplementation 'org.springframework.boot:spring-boot-starter-test'
3232
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

example-local/gradlew

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

0 commit comments

Comments
 (0)