Skip to content

Commit

Permalink
Release 0.42.2
Browse files Browse the repository at this point in the history
- Upgrade Kotlin to 2.1.0
- Upgrade Spring to 6.2.0
- Migrate Private Data class constructors to internal

Signed-off-by: Gopal S Akshintala <[email protected]>
  • Loading branch information
overfullstack committed Nov 30, 2024
1 parent d4bd7bb commit bb9b8e3
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ endif::[]
:pmtemplates: src/integrationTest/resources/pm-templates
:imagesdir: docs/images
:prewrap!:
:revoman-version: 0.42.0
:revoman-version: 0.42.2

'''

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
* ************************************************************************************************
*/
const val GROUP_ID = "com.salesforce.revoman"
const val VERSION = "0.42.1"
const val VERSION = "0.42.2"
const val ARTIFACT_ID = "revoman"
const val STAGING_PROFILE_ID = "1ea0a23e61ba7d"
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/revoman.kt-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ kapt {

kotlin {
compilerOptions {
freeCompilerArgs.addAll("-Xjvm-default=all", "-Xcontext-receivers", "-Xjdk-release=${libs.jdk}")
freeCompilerArgs.addAll("-Xjvm-default=all", "-Xcontext-receivers", "-Xjdk-release=${libs.jdk}", "-Xconsistent-data-class-copy-visibility")
}
}
8 changes: 4 additions & 4 deletions libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[versions]
jdk = "17"
kotlin = "2.0.20"
moshix = "0.28.0"
kotlin = "2.1.0"
moshix = "0.29.0"
http4k = "5.31.1.0"
immutables = "2.10.1"
arrow = "1.2.4"
graal = "23.0.6" # 23.0.6 Compatible with Java 17
graal = "24.1.1" # 23.0.6 Compatible with Java 17
java-vavr = "0.10.4"
kotlin-vavr = "0.10.2"
jetbrains-annotations = "26.0.0"
Expand All @@ -21,7 +21,7 @@ underscore = "1.105"
kotlin-faker = "1.16.0"
apache-commons-lang3 = "3.17.0"
mockito = "5.14.0"
spring = "6.2.0" # 5.3.31 Compatable with Java 11
spring = "6.2.0"
json-assert = "1.5.3"
nexus-publish = "2.0.0"
kotlinx-datetime = "0.6.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import com.salesforce.revoman.output.report.StepReport
import com.salesforce.revoman.output.report.TxnInfo
import org.http4k.core.Request

@ExposedCopyVisibility
data class HookConfig private constructor(val pick: StepPick, val hook: Hook) {
sealed interface Hook {
fun interface PreHook : Hook {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import io.vavr.kotlin.right
import java.lang.reflect.Type

data class RequestConfig
private constructor(
internal constructor(
val preTxnStepPick: PreTxnStepPick,
val objType: Type,
val customTypeAdapter: Either<JsonAdapter<Any>, JsonAdapter.Factory>? = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import io.vavr.kotlin.right
import java.lang.reflect.Type

data class ResponseConfig
private constructor(
internal constructor(
val postTxnStepPick: PostTxnStepPick,
val ifSuccess: Boolean?,
val objType: Type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
package com.salesforce.revoman.internal.postman

import com.github.underscore.U
import com.salesforce.revoman.internal.postman.PostmanSDK.Xml2Json
import com.salesforce.revoman.internal.postman.template.Body
import com.salesforce.revoman.internal.postman.template.Event
import com.salesforce.revoman.internal.postman.template.Header
Expand All @@ -20,6 +19,7 @@ import org.graalvm.polyglot.Context
import org.graalvm.polyglot.HostAccess
import org.graalvm.polyglot.Source
import org.graalvm.polyglot.Value
import org.graalvm.polyglot.io.IOAccess
import org.http4k.format.ConfigurableMoshi

/**
Expand Down Expand Up @@ -66,7 +66,7 @@ class PostmanSDK(
jsContext =
Context.newBuilder("js")
.allowExperimentalOptions(true)
.allowIO(true)
.allowIO(IOAccess.ALL)
.options(options)
.allowHostAccess(HostAccess.ALL)
.allowHostClassLookup { true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.http4k.core.Request
import org.http4k.core.Response

data class StepReport
private constructor(
internal constructor(
@JvmField val step: Step,
@JvmField val requestInfo: Either<out RequestFailure, TxnInfo<Request>>? = null,
@JvmField val preHookFailure: PreHookFailure? = null,
Expand Down

0 comments on commit bb9b8e3

Please sign in to comment.