gradlew check error
VidyaKamath opened this issue · comments
Hello, I get the below error when I run ./gradlew check. It is related to some security settings, but I am not able to figure it out. Any help would be appreciated.
Java Version:
$ java -version
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
$ ./gradlew check
Task :buildDemoClass FAILED
./buildDemo.ps1 : File C:\Vidya\Github\SootTutorial\buildDemo.ps1 cannot be loaded because running scripts is disabled
on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
- ./buildDemo.ps1
-
+ CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':buildDemoClass'.
Process 'command 'powershell'' finished with non-zero exit value 1
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 1s
1 actionable task: 1 executed
Resolved:
Executed the below command by running Powershell as administrator
Powershell Command:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser