Holas, hice el laboratorio con Maven y todo ok :-) Pero me gustaría saber qué consideraciones debemos tener en cuenta para Gradler
Intenté con java11 y me salió muchos errores al sincronizar, pero con Java17 ahora me sale incopatibilidad :-(
Segun documentación me dice que la dependencia de testing, el cual ya tambien la retiré del gradle pero me arroja el mismo error :-( Cualquier manita, ayudará ...
Detalles:---------
Execution failed for task ':DemoApiApplication.main()'.
Process 'command 'C:\Program Files\Java\jdk-17\bin\java.exe'' 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. Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec: command_line_warnings in the Gradle documentation. BUILD FAILED in 7s 3 actionable tasks: 3 executed
Configuración: plugins { id 'java' id 'org.springframework.boot' version '3.2.0-M1' id 'io.spring.dependency-management' version '1.1.2' }
group = 'com.example' version = '0.0.1-SNAPSHOT'
java { sourceCompatibility = '17' }
repositories { mavenCentral() maven { url 'https://repo.spring.io/milestone' } }
dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' testImplementation 'org.springframework.boot:spring-boot-starter-test' }
tasks.named('test') { useJUnitPlatform() }