build.gradle 586 B

1234567891011121314151617181920212223242526272829
  1. plugins {
  2. id 'java'
  3. }
  4. group 'space.anyi'
  5. version '1.0-SNAPSHOT'
  6. //指定编码
  7. compileJava.options.encoding = 'UTF-8'
  8. compileTestJava.options.encoding = 'UTF-8'
  9. //指定使用的jdk版本
  10. java {
  11. sourceCompatibility = JavaVersion.VERSION_17
  12. targetCompatibility = JavaVersion.VERSION_17
  13. }
  14. repositories {
  15. maven { url 'https://maven.aliyun.com/repository/google' }
  16. mavenCentral()
  17. }
  18. dependencies {
  19. testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
  20. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
  21. }
  22. test {
  23. useJUnitPlatform()
  24. }