Rename build.gradle scripts to match project name.
This will help in finding build scripts inside the IDE.
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -9,16 +9,16 @@ jobs:
- checkout
- restore_cache:
- key: dd-trace-java-{{ checksum "build.gradle" }}-{{ checksum "dd-java-agent/build.gradle" }}-{{ checksum "dd-trace/build.gradle" }}
+ key: dd-trace-java-{{ checksum "dd-trace-java.gradle" }}-{{ checksum "dd-java-agent/dd-java-agent.gradle" }}-{{ checksum "dd-trace/dd-trace.gradle" }}
- run:
name: Run Tests
- command: ./gradlew clean shadowJar check
+ command: ./gradlew clean shadowJar check --parallel
- save_cache:
paths:
- ~/.gradle
- key: dd-trace-java-{{ checksum "build.gradle" }}-{{ checksum "dd-java-agent/build.gradle" }}-{{ checksum "dd-trace/build.gradle" }}
+ key: dd-trace-java-{{ checksum "dd-trace-java.gradle" }}-{{ checksum "dd-java-agent/dd-java-agent.gradle" }}-{{ checksum "dd-trace/dd-trace.gradle" }}
- store_test_results:
path: dd-java-agent/build/test-results

RENAME
dd-java-agent-ittests/build.gradle
dd-java-agent-ittests/dd-java-agent-ittests.gradle
RENAME
dd-java-agent/build.gradle
dd-java-agent/dd-java-agent.gradle
RENAME
dd-trace-annotations/build.gradle
dd-trace-annotations/dd-trace-annotations.gradle
RENAME
dd-trace-examples/async-tracing/build.gradle
dd-trace-examples/async-tracing/async-tracing.gradle
RENAME
dd-trace-examples/dropwizard-mongo-client/build.gradle
dd-trace-examples/dropwizard-mongo-client/dropwizard-mongo-client.gradle
RENAME
dd-trace-examples/spring-boot-jdbc/build.gradle
dd-trace-examples/spring-boot-jdbc/spring-boot-jdbc.gradle
RENAME
build.gradle
dd-trace-java.gradle
RENAME
dd-trace/build.gradle
dd-trace/dd-trace.gradle
MODIFY
settings.gradle
settings.gradle
rootProject.name = 'dd-trace-java'
+
include ':dd-trace'
include ':dd-java-agent'
include ':dd-java-agent-ittests'
@@ -8,11 +9,11 @@ include ':dd-trace-examples:spring-boot-jdbc'
include ':dd-trace-examples'
include ':dd-trace-annotations'
-project(':dd-trace').projectDir = "$rootDir/dd-trace" as File
-project(':dd-java-agent').projectDir = "$rootDir/dd-java-agent" as File
-project(':dd-java-agent-ittests').projectDir = "$rootDir/dd-java-agent-ittests" as File
-project(':dd-trace-examples:async-tracing').projectDir = "$rootDir/dd-trace-examples/async-tracing" as File
-project(':dd-trace-examples:dropwizard-mongo-client').projectDir = "$rootDir/dd-trace-examples/dropwizard-mongo-client" as File
-project(':dd-trace-examples:spring-boot-jdbc').projectDir = "$rootDir/dd-trace-examples/spring-boot-jdbc" as File
-project(':dd-trace-examples').projectDir = "$rootDir/dd-trace-examples" as File
-project(':dd-trace-annotations').projectDir = "$rootDir/dd-trace-annotations" as File
\ No newline at end of file
+def setBuildFile(project) {
+ project.buildFileName = "${project.name}.gradle"
+ project.children.each {
+ setBuildFile(it)
+ }
+}
+
+setBuildFile(rootProject)

Rename build.gradle scripts to match project name.

This will help in finding build scripts inside the IDE.