Skip to content

Commit 173468d

Browse files
authored
Set Gradle version to 6.9.1, fix Junit and test case (#121)
1 parent 84b10ab commit 173468d

7 files changed

Lines changed: 11 additions & 7 deletions

File tree

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ subprojects {
2828
}
2929
allprojects {
3030
repositories {
31+
jcenter()
3132
mavenLocal()
3233
mavenCentral()
3334
maven {

core/php7.4Action/runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
if (!is_array($result)) {
7373
file_put_contents('php://stderr', 'Result must be an array but has type "'
7474
. gettype($result) . '": ' . $result);
75-
file_put_contents('php://stdout', 'The action did not return a dictionary.');
75+
file_put_contents('php://stdout', 'The action did not return a dictionary or array.');
7676
$result = (string)$result;
7777
} else {
7878
$result = json_encode((object)$result);

core/php8.0Action/runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
if (!is_array($result)) {
7373
file_put_contents('php://stderr', 'Result must be an array but has type "'
7474
. gettype($result) . '": ' . $result);
75-
file_put_contents('php://stdout', 'The action did not return a dictionary.');
75+
file_put_contents('php://stdout', 'The action did not return a dictionary or array.');
7676
$result = (string)$result;
7777
} else {
7878
$result = json_encode((object)$result);

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
#
1717
distributionBase=GRADLE_USER_HOME
1818
distributionPath=wrapper/dists
19-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
19+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
2020
zipStoreBase=GRADLE_USER_HOME
2121
zipStorePath=wrapper/dists

gradlew

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

gradlew.bat

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

tests/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ tasks.withType(Test) {
3434
}
3535

3636
dependencies {
37+
implementation "junit:junit:4.11"
3738
implementation "org.scala-lang:scala-library:${gradle.scala.version}"
39+
implementation "org.scalatest:scalatest_${gradle.scala.depVersion}:3.0.8"
40+
implementation "org.apache.openwhisk:openwhisk-common:${gradle.openwhisk.version}"
3841
implementation "org.apache.openwhisk:openwhisk-tests:${gradle.openwhisk.version}:tests"
3942
implementation "org.apache.openwhisk:openwhisk-tests:${gradle.openwhisk.version}:test-sources"
4043
implementation group: 'com.typesafe.akka', name: "akka-http2-support_${gradle.scala.depVersion}", version: "${gradle.akka_http.version}"

0 commit comments

Comments
 (0)