Je développe un projet gradle s'il vous plaît jeter un oeil à mon build.gradle:Je ne peux pas générer des accesseurs avec lombok
buildscript {
ext {
springBootVersion = '1.5.7.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
group = 'com.support.wizard'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
def swaggerVersion = "2.7.0"
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-data-rest')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-security')
compile('org.springframework.security.oauth:spring-security-oauth2')
compile('org.springframework.integration:spring-integration-mail')
compile group: 'com.sun.mail', name: 'javax.mail', version: '1.5.2'
compile ("io.springfox:springfox-swagger2:${swaggerVersion}")
compile ("io.springfox:springfox-swagger-ui:${swaggerVersion}")
compile("mysql:mysql-connector-java:6.0.6")
compileOnly('org.projectlombok:lombok')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
J'utilise le néon éclipse. Je rafraîchis le projet Gradle mais il ne génère pas de getters et setters pour mes entités.
comme:
@Entity
@Table(name = "users")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String email;
private String username;
private String password;
private String phoneNumber;
private String role;
private String resetToken;
private boolean enabled;
}
Lorsque l'on utilise le raccourci Eclipse Ctrl + O pour la recherche des méthodes et des champs dans une classe, je ne vois pas les accesseurs de ma classe UserEntity
S'il vous plaît avez-vous une idée?