Gradle Build failed in Windows 10 Operating System

Problem Statement:

Gradle Build failed in Windows 10 Operating System due to additional policy applied in network layer and firewall. This same setup is working fine in Mac book and Windows 7 Operating System. The following issue happens when execute through terminal mode. If I run it in intelliji ide, Getting ntlm authentication error even though ntlm domain property set.

Where :

Build File:

Error Meassge 1: Plugin ID was not found in any of the following issue.

  • Gradle core plugins (plugin is not in ‘org.gradle’ namespace)
  • Plugin Repositories (could not resolve plugin artefact ‘orglspringframework.boot.gradle.plugin:2.2.4 RELEASE’)

Error Message 2:

Build file ‘build.gradle’ line: 10

Could not compile build file build.gradle’.

startup failed:

build file ‘build.gradle’: 10: all buildscript {} blocks must appear before any plugins {} blocks in the script

Searched in the following repositories:

Other Errors:

The following list options are getting failed randomly highlighted the below build.gradle details:

  • plugins {}
  • buildscript {}
  • publishing {}
  • contracts {}

Other Observations:

Tested same machine with only project has build.gradle with

dependencies {} and it is building the project. But other case it is not working.