Hi ,
Currently I am using gradle 7.6 version and would like to migrate it with 8.X version. Below is my build.gradle file .Can some please help me to migrate it with gradle 8.x version. Thanks in advance
defaultTasks 'createJar', 'aggregate'
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
}
}
group 'com.orgs.project'
version '1.0'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'idea'
dependencies {
//Reporting
}
tasks.create(name: "smoke-${region}", type: Test) {
outputs.upToDateWhen { false }
ignoreFailures = true
finalizedBy(aggregate)
group = "Environments"
doFirst {
useJUnitPlatform {
if (project.hasProperty('includeTags')) {
}
}
}
}
tasks.create(name: "regression-${region}", type: Test) {
outputs.upToDateWhen { false }
ignoreFailures = true
finalizedBy(aggregate)
group = "Environments"
doFirst {
useJUnitPlatform {
if (project.hasProperty('includeTags')) {
}
}
}
}
task SingleRun(type: Test) {
outputs.upToDateWhen { false }
ignoreFailures = true
finalizedBy(aggregate)
group = "Environments"
doFirst {
useJUnitPlatform {
}
}
}
task Run(type: Test) {
outputs.upToDateWhen { false }
ignoreFailures = true
finalizedBy(aggregate)
group = "Environments"
doFirst {
useJUnitPlatform {
}
}
}
task cleanReports{
project.logger.lifecycle("Starting Task: cleanReports")
finalizedBy(clean)
doLast{
project.delete(files("target/json") {})
project.delete(files("target") {})
}
}
tasks.withType(Test) {
// maxParallelForks=2
testLogging {
events "FAILED",
"SKIPPED",
"STANDARD_ERROR",
"STANDARD_OUT"
exceptionFormat "FULL"
showCauses true
showExceptions true
showStackTraces true
showStandardStreams true
}
}