Skip to content

Commit

Permalink
upgrade jvm2dts
Browse files Browse the repository at this point in the history
(cherry picked from commit 2e28c2ae18090b095427f16ae3c2d97cc71d298d)
  • Loading branch information
angryziber authored and karnilaev committed Aug 6, 2021
1 parent dc846d4 commit 59c5ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
testImplementation("org.assertj:assertj-core:3.20.2")
testImplementation("com.codeborne:selenide:5.23.0")

jvm2dts("com.codeborne:jvm2dts:1.4.0")
jvm2dts("com.codeborne:jvm2dts:1.5.2")
}

sourceSets {
Expand Down Expand Up @@ -70,7 +70,7 @@ tasks.register("generateTSTypes") {
project.file("ui/api/types.ts").writeText(ByteArrayOutputStream().use { out ->
project.exec {
standardOutput = out
commandLine = """java -classpath ${(jvm2dts + sourceSets.main.get().runtimeClasspath).asPath}
commandLine = """java -classpath ${(jvm2dts + sourceSets.main.get().runtimeClasspath).asPath} --illegal-access=permit
jvm2dts.Main -exclude $excludeClassNamesRegex -classesDir ${project.buildDir}/classes/kotlin/main -excludeDir $excludedPackages""".split("\\s+".toRegex())
}
out.toString()
Expand Down

0 comments on commit 59c5ca4

Please sign in to comment.