Skip to content

Commit 0947f53

Browse files
authored
adjust version code and add version tag to readme (#20)
1 parent b341f17 commit 0947f53

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Slack](https://img.shields.io/badge/slack-%23serverless-blueviolet?logo=slack)](https://datadoghq.slack.com/channels/serverless/)
44
[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/DataDog/datadog-lambda-java/blob/master/LICENSE)
55
![](https://github.com/DataDog/datadog-lambda-java/workflows/Test%20on%20Master%20branch/badge.svg)
6+
![Bintray](https://img.shields.io/bintray/v/datadog/datadog-maven/datadog-lambda-java)
67

78
The Datadog Lambda Java Client Library for Java (8 and 11) enables [enhanced lambda metrics](https://docs.datadoghq.com/integrations/amazon_lambda/?tab=awsconsole#real-time-enhanced-lambda-metrics)
89
and [distributed tracing](https://docs.datadoghq.com/integrations/amazon_lambda/?tab=awsconsole#tracing-with-datadog-apm)

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sourceCompatibility = 1.8
3939
targetCompatibility = 1.8
4040

4141
group = 'com.datadoghq'
42-
version = '0.0.6'
42+
version= '0.0.6'
4343

4444
allprojects {
4545
repositories {
@@ -56,7 +56,7 @@ publishing {
5656
from components.java
5757
groupId 'com.datadoghq'
5858
artifactId 'datadog-lambda-java'
59-
version version
59+
version project.version.toString()
6060
}
6161
}
6262
}
@@ -72,14 +72,14 @@ bintray {
7272
licenses = ['Apache-2.0']
7373
vcsUrl = 'https://github.com/DataDog/datadog-lambda-java.git'
7474
version {
75-
name = version
75+
name = project.version.toString()
7676
desc = 'Datadog Lambda Java runtime library'
77-
vcsTag = version
77+
vcsTag = project.version.toString()
7878
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
7979
}
8080
}
8181
}
8282

8383
buildConfig {
84-
buildConfigField('String', 'datadog_lambda_version', '"' + version + '"')
84+
buildConfigField('String', 'datadog_lambda_version', '"' + project.version.toString() + '"')
8585
}

0 commit comments

Comments
 (0)