Skip to content

Commit 4dac0e1

Browse files
committed
Update the doc
1 parent f47ff3b commit 4dac0e1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/publishing-with-ddprof-snapshot.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This feature allows publishing dd-trace-java snapshot versions that depend on a
1010

1111
### Version Qualification
1212

13-
To avoid overwriting standard snapshot artifacts, builds with `-PddprofUseSnapshot=true` will have a `-ddprof` qualifier added to their version:
13+
To avoid overwriting standard snapshot artifacts, builds with `-PddprofUseSnapshot` will have a `-ddprof` qualifier added to their version:
1414

1515
- Standard snapshot: `1.58.0-SNAPSHOT`
1616
- With ddprof snapshot: `1.58.0-ddprof-SNAPSHOT`
@@ -24,7 +24,7 @@ This ensures that both versions can coexist in Maven Central Snapshots repositor
2424
To verify that the ddprof snapshot version is correctly calculated and applied:
2525

2626
```bash
27-
./gradlew -PddprofUseSnapshot=true :dd-java-agent:ddprof-lib:dependencies --configuration runtimeClasspath
27+
./gradlew -PddprofUseSnapshot :dd-java-agent:ddprof-lib:dependencies --configuration runtimeClasspath
2828
```
2929

3030
Look for the output:
@@ -38,15 +38,15 @@ Look for the output:
3838
To build the project with the ddprof snapshot dependency:
3939

4040
```bash
41-
./gradlew build -PddprofUseSnapshot=true
41+
./gradlew build -PddprofUseSnapshot
4242
```
4343

4444
### Publishing to Maven Central Snapshots
4545

4646
To publish artifacts with the ddprof snapshot dependency:
4747

4848
```bash
49-
./gradlew publishToSonatype -PddprofUseSnapshot=true -PskipTests
49+
./gradlew publishToSonatype -PddprofUseSnapshot -PskipTests
5050
```
5151

5252
**Note:** You must have the required credentials configured:
@@ -67,7 +67,7 @@ A GitLab CI job named `deploy_snapshot_with_ddprof_snapshot` is available for ma
6767
3. Click the manual play button to trigger it
6868

6969
**What it does:**
70-
- Builds dd-trace-java with `-PddprofUseSnapshot=true`
70+
- Builds dd-trace-java with `-PddprofUseSnapshot`
7171
- Publishes to Maven Central Snapshots repository
7272
- Produces artifacts with the ddprof snapshot dependency
7373

@@ -87,7 +87,7 @@ A GitLab CI job named `deploy_snapshot_with_ddprof_snapshot` is available for ma
8787

8888
### How It Works
8989

90-
1. The Gradle property `-PddprofUseSnapshot=true` activates the feature
90+
1. The Gradle property `-PddprofUseSnapshot` activates the feature
9191
2. The configuration reads `gradle/libs.versions.toml` to get the current ddprof version
9292
3. Version is parsed using regex: `ddprof = "X.Y.Z"`
9393
4. Snapshot version is calculated: `X.(Y+1).0-SNAPSHOT`
@@ -136,6 +136,6 @@ This ensures that even transitive dependencies on ddprof are overridden.
136136
**Cause:** The property might not be correctly set or parsed.
137137

138138
**Solutions:**
139-
- Ensure you're using `-PddprofUseSnapshot=true` (not `-DddprofUseSnapshot`)
139+
- Ensure you're using `-PddprofUseSnapshot` (not `-DddprofUseSnapshot`)
140140
- Check Gradle output for "Using ddprof snapshot version" message
141141
- Run with `--info` flag to see detailed dependency resolution logs

0 commit comments

Comments
 (0)