build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. plugins {
  2. id 'org.springframework.boot' version '2.3.0.RELEASE'
  3. id 'io.spring.dependency-management' version '1.0.9.RELEASE'
  4. id 'java'
  5. id 'org.asciidoctor.convert' version '1.5.6'
  6. }
  7. group = 'com.aionnect'
  8. version = '0.0.1'
  9. sourceCompatibility = '1.8'
  10. asciidoctor {
  11. sourceDir 'src/main/asciidoc'
  12. attributes 'snippets': file('target/snippets')
  13. }
  14. repositories {
  15. maven { url 'https://maven.aliyun.com/repository/google' }
  16. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  17. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  18. mavenCentral()
  19. }
  20. dependencies {
  21. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  22. implementation 'org.springframework.boot:spring-boot-starter-web'
  23. implementation 'org.springframework.boot:spring-boot-starter-security'
  24. implementation 'org.springframework.security:spring-security-test'
  25. implementation 'io.jsonwebtoken:jjwt:0.9.1'
  26. testImplementation 'junit:junit'
  27. testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
  28. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  29. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  30. }
  31. }
  32. test {
  33. useJUnitPlatform()
  34. }