I try to build .jar with Spring Boot for Java8.
But,I get this message.
An exception occurred applying plugin request [id: 'org.springframework.boot', version: '1.5.21.RELEASE'] Failed to apply plugin 'org.springframework.boot'. Configuration with name 'runtime' not found.
I didnt know what ‘Configuration with name ‘runtime’ not found.’ means.
This is my Gradle, please help me to fix it. Thanks!
plugins {
id 'java'
id 'org.springframework.boot' version '1.5.21.RELEASE'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = 1.8
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web:1.5.21.RELEASE'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation fileTree('dir': 'libs', 'include': '*.jar')
implementation 'org.json:json:20231013'
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
}
tasks.named('test') {
useJUnitPlatform()
}
New contributor
Regina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1