Gradle - Could not find org.faces:primefaces-12.0.4-jakarta:

Originally using: Gradle with Groovy it builds & deploys my EAR, JAR & WAR:



Migratied to Gradle with Kotlin :

./gradlew build clean --scan 

> Configure project :
WARNING: Unsupported Kotlin plugin version.
The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.8.10` that might work differently than in the requested version `1.8.21`.
>>>>> 2 deleteFiles
>>>>> 3 NOTiFYmotoWAR
>>>>> 4 NOTiFYmotoJAR
>>>>> 5 copyNOTiFYmotoWAR
>>>>> 6 copyNOTiFYmotoJAR
>>>>> 7 NOTiFYmotoEAR

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find org.faces:primefaces-12.0.4-jakarta:.
     Searched in the following locations:
       - file:/Users/NOTiFY/IdeaProjects/NOTiFYmoto/libs/compile/primefaces-12.0.4-jakarta.jar
       - file:/Users/NOTiFY/IdeaProjects/NOTiFYmoto/libs/provided/primefaces-12.0.4-jakarta.jar
     Required by:
         project :
   > Could not find org.primefaces.themes:bootstrap:1.0.10.
     Searched in the following locations:
       - file:/Users/NOTiFY/IdeaProjects/NOTiFYmoto/libs/compile/bootstrap-1.0.10.jar
       - file:/Users/NOTiFY/IdeaProjects/NOTiFYmoto/libs/compile/bootstrap.jar
       - file:/Users/NOTiFY/IdeaProjects/NOTiFYmoto/libs/provided/bootstrap-1.0.10.jar
       - file:/Users/NOTiFY/IdeaProjects/NOTiFYmoto/libs/provided/bootstrap.jar
     Required by:
         project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at

1 actionable task: 1 executed

Publishing a build scan to requires accepting the Gradle Terms of Service defined at Do you accept these terms? [yes, no] yes

Gradle Terms of Service accepted.

Publishing build scan...
Publishing build scan failed due to network error ' Unexpected end of file from server' (2 retries remaining)...
Publishing build scan failed due to network error ' Unexpected end of file from server' (1 retry remaining)...

A network error occurred.

If you require assistance with this problem, please report it via and include the following information via copy/paste.

Gradle version: 8.1.1
Plugin version: 3.12.6
Request URL:
Request ID: 309d78b7-9e8c-4598-8e51-1b7e49d78339
Exception: Unexpected end of file from server
PF 12.0.4-Jakarta. Jakarta Faces 4.0.1.
Mojarra 4.0.0.SP01. OmniFaces 4.1
WildFly 28.0.0.Final 'preview' Jakarta EE 10.0.0
JDK 20, Kotlin 1.8.21, Gradle 8.1.1 Kotlin, MongoDB 6.0.6
IntelliJ IDEA 2023.1.2, macOS Ventura 13.4

Can find the JAR for:


Is there a question hidden somewhere?
You are depending on two libraries that are not found.
From the output I’d guess you check in your libraries together with your sources but do not have included those versions in there.
Look in your libs/compile/ and libs/provided/ folders.


flatDir {


flatDir {