plugins { id 'java' } group 'space.anyi' version '1.0-SNAPSHOT' //指定编码 compileJava.options.encoding = 'UTF-8' compileTestJava.options.encoding = 'UTF-8' //指定使用的jdk版本 java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } repositories { maven { url 'https://maven.aliyun.com/repository/google' } mavenCentral() } dependencies { testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' } test { useJUnitPlatform() }