Skip to content

Commit

Permalink
minor build clean up (and buildDir was deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Jul 22, 2023
1 parent 1640b25 commit 0bedba1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jmh {

val jvmArguments = mutableListOf("-Xmx2G")
if (System.getenv("GRAALVM") == "true") {
jvmArguments.addAll(listOf(
jvmArguments += listOf(
"-XX:+UnlockExperimentalVMOptions", "-Dgraal.ShowConfiguration=info",
"-XX:+EnableJVMCI", "-XX:+UseJVMCICompiler", "-XX:+EagerJVMCI"))
"-XX:+EnableJVMCI", "-XX:+UseJVMCICompiler", "-XX:+EagerJVMCI")
}
jvmArgs = jvmArguments

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
val reporter = PlainTextReporter(project, revision, gradleReleaseChannel)
exceeded.dependencies.removeAll { dependency ->
if (dependency.group?.startsWith("org.ops4j") == true) {
current.dependencies.add(dependency)
current.dependencies += dependency
true
} else {
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ fun excludeInfoFiles() {
if (this is Classpath) {
entries.filterIsInstance<SourceFolder>().forEach { sourceFolder ->
val excludes = sourceFolder.excludes.toMutableList()
excludes.add("module-info.java")
excludes += "module-info.java"
if (sourceFolder.path != "src/main/java") {
excludes.add("**/package-info.java")
excludes += "**/package-info.java"
}
sourceFolder.excludes = excludes
}
Expand Down
4 changes: 2 additions & 2 deletions simulator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ tasks.register<Rewrite>("rewrite") {

eclipse.classpath.file.beforeMerged {
if (this is EclipseClasspath) {
entries.add(SourceFolder(
relativePath("$buildDir/generated/sources/annotationProcessor/java/main"), "bin/main"))
val absolutePath = layout.buildDirectory.dir("generated/sources/annotationProcessor/java/main")
entries.add(SourceFolder(relativePath(absolutePath), "bin/main"))
}
}

Expand Down

0 comments on commit 0bedba1

Please sign in to comment.