Tôi có một tập lệnh gradle riêng biệt chỉ là thêm plugin khởi động mùa xuân. Nó trông giống như thế này:plugin gradle khởi động mùa xuân
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url 'http://repo.spring.io/libs-release' }
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.1.8.RELEASE'
}
}
apply plugin: 'spring-boot'
Sau đó, trong một dự án khác, nó được tham chiếu như thế này:
apply from: '../../food-orders-online-main/spring-boot.gradle'
Khi tôi chạy xây dựng nhiệm vụ tôi nhận được lỗi sau:
A problem occurred evaluating script.
> Failed to apply plugin [id 'spring-boot']
> Plugin with id 'spring-boot' not found.
Ai đó biết tôi đang làm gì sai?
Tôi nhận ** 'Id plugin 'spring-boot' không được dùng nữa. Vui lòng sử dụng 'org.springframework.boot' thay thế.' ** – acdcjunior