Open wolfwell5 opened 2 years ago
I just used "gradle init" to convert it to gradle. Had to add the test-task manually.
Here's the build.gradle output:
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
implementation 'org.springframework.boot:spring-boot-starter-web:2.7.1'
implementation 'org.springframework.boot:spring-boot-devtools:2.7.1'
implementation 'org.springframework.boot:spring-boot-starter-amqp:2.7.1'
implementation 'org.projectlombok:lombok:1.18.24'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.7.1'
testImplementation 'org.springframework.amqp:spring-rabbit-test:2.4.6'
testImplementation 'org.assertj:assertj-core:3.22.0'
testImplementation 'org.awaitility:awaitility:4.2.0'
testImplementation 'org.testcontainers:junit-jupiter:1.17.2'
}
group = 'io.gaddings.messaging'
version = '0.0.1-SNAPSHOT'
description = 'demomessaging'
java.sourceCompatibility = JavaVersion.VERSION_11
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
"gradle test" works for me
What do I need to do or could you plz change to gradle versions if you got time, thanks