Skip to content

Commit

Permalink
Fix build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Feb 25, 2024
1 parent abf5980 commit 59dd600
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ tasks.test {
useJUnitPlatform()
}

val generatedSrcPath = "$buildDir/generated/kotlin"
val generatedSrcPath = "build/generated/kotlin"
kotlin {
// for PackageVersion
sourceSets["jmh"].apply {
Expand All @@ -85,7 +85,6 @@ tasks {
"""
package $packageStr
import org.openjdk.jmh.annotations.Param
import org.openjdk.jmh.annotations.Scope
import org.openjdk.jmh.annotations.State
Expand All @@ -110,6 +109,10 @@ abstract class BenchmarkBase {
dependsOn.add(generateBenchmarkBase)
kotlinOptions.jvmTarget = "1.8"
}

compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}

fun BenchmarkSet.includes(): List<String> = when (this) {
Expand Down

0 comments on commit 59dd600

Please sign in to comment.