@@ -12,7 +12,7 @@ buildscript {
1212
1313 dependencies {
1414 classpath ' gradle-templates:gradle-templates:1.5'
15- classpath ' com.newrelic.agent.java:gradle-verify-instrumentation-plugin:3.2 '
15+ classpath ' com.newrelic.agent.java:gradle-verify-instrumentation-plugin:4.0 '
1616 }
1717}
1818
@@ -22,7 +22,7 @@ plugins {
2222
2323project. ext {
2424 group = ' com.newrelic.instrumentation.labs'
25- javaAgentVersion = ' 6.4.0 '
25+ javaAgentVersion = project . findProperty( ' java.agent.version ' )
2626
2727 // Aligned with minimum Java major version supported by latest Java Agent
2828 javaVersion = JavaVersion . VERSION_1_8
@@ -58,23 +58,7 @@ task cleanUp(type: Delete) {
5858 }
5959}
6060
61- task checkForDependencies (type : Exec ) {
62- environment " JAVAAGENTVERSION" , javaAgentVersion
63- def rootProject = projectDir. path
64- def cmdLine = rootProject+ ' /newrelic-dependencies.sh'
65- workingDir rootProject
66- commandLine cmdLine
67-
68- }
69-
70- task buildIfNeeded {
71- dependsOn checkForDependencies
72- dependsOn jar
73- tasks. findByName(' jar' ). mustRunAfter ' checkForDependencies'
74- }
75-
7661task createModule {
77- dependsOn checkForDependencies
7862 description = ' Generate project files for a new instrumentation module'
7963 group = ' New Relic Labs'
8064 doLast {
@@ -173,7 +157,7 @@ subprojects {
173157 testImplementation ' com.newrelic.agent.java:newrelic-agent:' + project. javaAgentVersion
174158 }
175159
176- task install( dependsOn : buildIfNeeded, type : Copy ) {
160+ tasks . register( ' install ' , Copy ) {
177161 description = ' Copies compiled jar to the NEW_RELIC_EXTENSIONS_DIR.'
178162 group = ' New Relic Labs'
179163
@@ -183,10 +167,6 @@ subprojects {
183167 into extDir
184168 }
185169
186- compileJava. doFirst {
187- tasks. findByName(' checkForDependencies' )
188- }
189-
190170 install. doFirst {
191171 def extDir = System . getenv(" NEW_RELIC_EXTENSIONS_DIR" )
192172 if (extDir == null ) {
0 commit comments