File tree 3 files changed +29
-9
lines changed
instrumentation/aws-wrap-0.7.0
3 files changed +29
-9
lines changed Original file line number Diff line number Diff line change
1
+ ## Building
2
+
3
+ New Relic does not distribute the jar(s) required to build this instrumentation module nor are they available from a public repository such as Maven Central or jcenter.
4
+
5
+ To build this instrumentation module you must provide the jar(s) and place them into the ` /lib ` subdirectory as follows:
6
+
7
+ ``` groovy
8
+ instrumentation/aws-wrap-0.7.0/lib/aws-wrap_2.10-0.9.2.jar
9
+ ```
10
+
11
+ ## Required jar versions
12
+ ` aws-wrap_2.10 ` - 0.9.0 or above
Original file line number Diff line number Diff line change @@ -2,27 +2,33 @@ apply plugin: 'scala'
2
2
3
3
isScalaProjectEnabled(project, " scala-2.10" )
4
4
5
- repositories {
6
- maven {
7
- // repo for aws-wrap
8
- url ' https://dl.bintray.com/dwhjames/maven'
9
- }
10
- }
11
-
12
5
dependencies {
13
6
implementation(project(" :newrelic-api" ))
14
7
implementation(project(" :agent-bridge" ))
15
8
implementation(project(" :newrelic-weaver-api" ))
16
9
implementation(project(" :newrelic-weaver-scala-api" ))
17
- // https://dl.bintray.com/dwhjames/maven/com/github/dwhjames/aws-wrap_2.10/0.8.0/aws-wrap_2.10-0.8.0.jar
18
- implementation(" com.github.dwhjames:aws-wrap_2.10:0.9.2" )
19
10
implementation(" org.scala-lang:scala-library:2.10.7" )
11
+ // com.github.dwhjames:aws-wrap_2.10:0.9.2 is expected to be in the lib folder
12
+ implementation(fileTree(include : [" *.jar" ], dir : " lib" ))
20
13
21
14
testImplementation(" com.amazonaws:aws-java-sdk:1.10.64" )
22
15
testImplementation(project(" :instrumentation:aws-java-sdk-s3-1.2.13" )){ transitive = false }
23
16
}
24
17
18
+ def shouldBuild = fileTree(include : [" *.jar" ], dir : " lib" ). size() > 0
19
+
20
+ compileJava {
21
+ enabled(shouldBuild)
22
+ }
23
+
24
+ compileTestJava {
25
+ enabled(shouldBuild)
26
+ }
27
+
28
+ tasks. getByName(" writeCachedWeaveAttributes" ). enabled(shouldBuild)
29
+
25
30
jar {
31
+ enabled(shouldBuild)
26
32
manifest { attributes ' Implementation-Title' : ' com.newrelic.instrumentation.aws-wrap-0.7.0' }
27
33
}
28
34
Original file line number Diff line number Diff line change
1
+ *
2
+ ! .gitignore
You can’t perform that action at this time.
0 commit comments