Skip to content

Commit 887a3e8

Browse files
authored
Upgrade to Pants 2.24.0 (#20)
* Upgrade to Pants 2.24.0 * new default format
1 parent 75888e2 commit 887a3e8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pants.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Apache License, Version 2.0 (see LICENSE).
33

44
[GLOBAL]
5-
pants_version = "2.23.0"
5+
pants_version = "2.24.0"
66
backend_packages = [
77
# This repository demonstrates using Pants with Kotlin.
88
#

src/jvm/org/pantsbuild/example/json/JsonExample.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ fun decodeUser(file: String) {
2323
println("Email: ${user.email}")
2424
}
2525

26-
fun encodeUser(name: String, email: String) {
26+
fun encodeUser(
27+
name: String,
28+
email: String,
29+
) {
2730
val user = User(name, email)
2831
println(Json.encodeToString(user))
2932
}

0 commit comments

Comments
 (0)