Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

457
Views
No se pudo establecer la propiedad desconocida 'mainClassName' para la extensión 'springBoot' de tipo org.springframework.boot.gradle.dsl.SpringBootExtension

Tengo build.gradle así y funciona:

 plugins { id 'org.springframework.boot' version '2.5.8' apply false ... } ... springBoot { mainClassName = 'com.mir3.service.contactfileparser.Main' }

pero si actualizo la versión Spring Boot a 2.6.2 falla con el error:

 plugins { id 'org.springframework.boot' version '2.6.2' apply false ... } ... springBoot { mainClassName = 'com.mir3.service.contactfileparser.Main' }

El texto del error es:

 A problem occurred evaluating root project 'myProject'. > Could not set unknown property 'mainClassName' for extension 'springBoot' of type org.springframework.boot.gradle.dsl.SpringBootExtension.

Cómo puedo arreglarlo ? ¿Cuál es la forma correcta de migrar de 2.5.8 a 2.6.2?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Usar:

 springBoot { mainClass = 'com.mir3.service.contactfileparser.Main' }

SpringBootExtension tiene:

 /** * Returns the fully-qualified name of the application's main class. * @return the fully-qualified name of the application's main class * @since 2.4.0 */ public Property<String> getMainClass() { return this.mainClass; }

mainClassName quedó en desuso en favor de mainClass en 2.4.0 y se programó su eliminación en 2.6.0. Se eliminó con este compromiso: Eliminar código obsoleto marcado para eliminación

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!