12345678910111213141516171819202122232425262728293031323334 |
- plugins {
- id 'java'
- }
- group 'com.sainyu.beidou3.demo'
- version '1.0-SNAPSHOT'
- repositories {
- mavenCentral()
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
- }
- test {
- useJUnitPlatform()
- }
- // my config
- apply plugin: 'java'
- apply plugin: 'application'
- mainClassName = 'com.sainyu.beidou3.demo.SocketFrame'
- //清除上次的编译过的文件
- task clearPj(type:Delete){
- delete 'build','target'
- }
- // 未经检查或不安全的操作,使用 -Xlint:unchecked 重新编译
- tasks.withType(JavaCompile) {
- options.compilerArgs << "-Xlint:unchecked" << "-Werror"
- }
|