Skip to content

Commit 9a012c1

Browse files
authored
Fix a few gradle warnings (#4375)
1 parent e1b39c1 commit 9a012c1

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

agent/agent-for-testing/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tasks {
5050
dependsOn(relocateJavaagentLibs)
5151
isolateClasses(relocateJavaagentLibs.get().outputs.files)
5252

53-
into("$buildDir/isolated/javaagentLibs")
53+
into(layout.buildDirectory.dir("isolated/javaagentLibs"))
5454
}
5555

5656
// 3. the relocated and isolated javaagent libs are merged together with the bootstrap libs (which undergo relocation

agent/agent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ tasks {
9595
dependsOn(relocateJavaagentLibs)
9696
isolateClasses(relocateJavaagentLibs.get().outputs.files)
9797

98-
into("$buildDir/isolated/javaagentLibs")
98+
into(layout.buildDirectory.dir("isolated/javaagentLibs"))
9999
}
100100

101101
// 3. the relocated and isolated javaagent libs are merged together with the bootstrap libs (which undergo relocation

buildSrc/src/main/kotlin/ai.smoke-test.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ configurations.all {
8787
}
8888

8989
tasks {
90-
task<Test>("smokeTest") {
90+
register<Test>("smokeTest") {
9191
useJUnitPlatform()
9292

9393
// this is just to force building the agent first

etw/java/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ sourceSets {
2222
}
2323
}
2424

25-
archivesBaseName = "applicationinsights-java-etw-provider"
25+
base {
26+
archivesName = "applicationinsights-java-etw-provider"
27+
}
2628

2729
logger.info "project ${project.path} prop: ai.etw.native.build=${System.properties['ai.etw.native.build']}"
2830

gradle.properties

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,5 @@ org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m
1212

1313
# org.gradle.warning.mode=fail
1414

15-
# To allow caching more tasks in buildSrc project
16-
# This property is not mentioned in Gradle documentation
17-
# See https://github.com/gradle/gradle/issues/15214 for background info
18-
systemProp.org.gradle.kotlin.dsl.precompiled.accessors.strict=true
19-
2015
# Workaround https://youtrack.jetbrains.com/issue/KT-34862
2116
kotlin.incremental=false

0 commit comments

Comments
 (0)