Skip to content

Commit

Permalink
-try to fix test. I guess the json order is the issue. I am not sure …
Browse files Browse the repository at this point in the history
…why this is not an issue locally though.
  • Loading branch information
holomekc committed Dec 12, 2023
1 parent 108689a commit 945e29c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ task versionTxt() {
dependsOn generateWebapp
doLast {
new File(projectDir.getAbsolutePath() + "/src/main/resources", "version.json").text = """{
"version": "$version",
"buildTime": "${new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date())}"
"buildTime": "${new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date())}",
"version": "$version"
}
"""
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright (C) 2023 Thomas Akehurst
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.tomakehurst.wiremock.admin.model;

import com.fasterxml.jackson.annotation.JsonCreator;
Expand All @@ -11,11 +26,8 @@ public class VersionResult {

@JsonCreator
public VersionResult(
@JsonProperty("version")
final String version,
@JsonProperty("buildTime")
final String buildTime
) {
@JsonProperty("version") final String version,
@JsonProperty("buildTime") final String buildTime) {
this.version = version;
this.buildTime = buildTime;
}
Expand Down

0 comments on commit 945e29c

Please sign in to comment.