@@ -13373,19 +13373,18 @@ const version_parser_1 = __webpack_require__(59);
13373
13373
const scopeAgentMetadataURL = "https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-agent/maven-metadata.xml" ;
13374
13374
const scopeGradlePluginMetadataURL = "https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-gradle-plugin/maven-metadata.xml" ;
13375
13375
const scopeGradleInstrMetadataURL = "https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-instrumentation-for-gradle/maven-metadata.xml" ;
13376
+ const scopeNoTrackDep = "_scope_notrackdep" ;
13376
13377
function instrument ( allowBeta ) {
13377
13378
return __awaiter ( this , void 0 , void 0 , function * ( ) {
13378
13379
const workdir = process . cwd ( ) ;
13379
13380
const [ agentVersion , pluginVersion , instrVersion ] = yield Promise . all ( [ version_parser_1 . getVersionToUse ( scopeAgentMetadataURL , allowBeta ) , version_parser_1 . getVersionToUse ( scopeGradlePluginMetadataURL , false ) , version_parser_1 . getVersionToUse ( scopeGradleInstrMetadataURL , false ) ] ) ;
13380
13381
const gradleInstrumentatorPath = yield tc . downloadTool ( `https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-instrumentation-for-gradle/${ instrVersion } /scope-instrumentation-for-gradle-${ instrVersion } .jar` ) ;
13381
- if ( ! gradleInstrumentatorPath . endsWith ( ".jar" ) ) {
13382
- yield io . mv ( gradleInstrumentatorPath , gradleInstrumentatorPath + ".jar" ) ;
13383
- }
13382
+ const finalGradleInstrumentatorPath = `${ gradleInstrumentatorPath . replace ( '.jar' , '' ) } ${ scopeNoTrackDep } .jar` ;
13383
+ yield io . mv ( gradleInstrumentatorPath , finalGradleInstrumentatorPath ) ;
13384
13384
const scopeAgentPath = yield tc . downloadTool ( `https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-agent/${ agentVersion } /scope-agent-${ agentVersion } .jar` ) ;
13385
- if ( ! scopeAgentPath . endsWith ( ".jar" ) ) {
13386
- yield io . mv ( scopeAgentPath , scopeAgentPath + ".jar" ) ;
13387
- }
13388
- yield exec . exec ( `sh -c "java -jar ${ gradleInstrumentatorPath } .jar ${ pluginVersion } ${ scopeAgentPath } .jar ${ workdir } "` ) ;
13385
+ const finalScopeAgentPath = `${ scopeAgentPath . replace ( '.jar' , '' ) } ${ scopeNoTrackDep } .jar` ;
13386
+ yield io . mv ( scopeAgentPath , finalScopeAgentPath ) ;
13387
+ yield exec . exec ( `sh -c "java -jar ${ finalGradleInstrumentatorPath } ${ pluginVersion } ${ finalScopeAgentPath } ${ workdir } "` ) ;
13389
13388
} ) ;
13390
13389
}
13391
13390
exports . instrument = instrument ;
0 commit comments