27
|
1 plugins {
|
|
2 id 'java'
|
|
3 }
|
26
|
4
|
27
|
5 group 'FileWrite'
|
|
6 version '1.0-SNAPSHOT'
|
26
|
7
|
27
|
8 sourceCompatibility = 11
|
26
|
9
|
27
|
10 repositories {
|
|
11 mavenCentral()
|
|
12 jcenter()
|
|
13 }
|
26
|
14
|
27
|
15 test {
|
|
16 useJUnitPlatform {
|
|
17 includeEngines 'junit-jupiter'
|
26
|
18 }
|
|
19 }
|
|
20
|
27
|
21 dependencies {
|
|
22 testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.1.0'
|
|
23 testRuntime group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.1.0'
|
26
|
24 }
|
|
25
|
27
|
26 compileJava {
|
|
27 options.compilerArgs << "-Werror"
|
|
28 }
|
|
29 jar {
|
|
30 from configurations.compile.collect { it.isDirectory() ? it :zipTree(it) }
|
|
31 manifest {
|
|
32 attributes "Main-Class":"jp.ac.uryukyu.ie.kono.wifibroadcast.WifiBroadcastTest"
|
|
33 attributes 'Implementation-Title':'Gradle Quickstart', 'Implementation-Version':version
|
26
|
34 }
|
|
35 }
|
|
36
|
27
|
37 defaultTasks 'test'
|