|
| 1 | +buildscript { |
| 2 | + repositories { |
| 3 | + mavenCentral() |
| 4 | + } |
| 5 | + dependencies { |
| 6 | + classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-RC2' |
| 7 | + } |
| 8 | +} |
| 9 | + |
1 | 10 | apply plugin: 'java' |
2 | 11 | apply plugin: 'maven' |
| 12 | +apply plugin: 'idea' |
| 13 | +apply plugin: 'org.junit.platform.gradle.plugin' |
3 | 14 |
|
4 | 15 | group = 'com.spaceshift' |
5 | 16 | version = '0.9.11' |
6 | 17 |
|
7 | 18 | sourceCompatibility = 1.8 |
8 | 19 | targetCompatibility = 1.8 |
9 | 20 |
|
| 21 | +compileTestJava { |
| 22 | + sourceCompatibility = 1.8 |
| 23 | + targetCompatibility = 1.8 |
| 24 | + options.compilerArgs += '-parameters' |
| 25 | +} |
| 26 | + |
10 | 27 | ext.jmeVersion = "3.2_branch-SNAPSHOT" |
11 | 28 | ext.jme3_xbuf_version = '0.9.1' |
12 | 29 | ext.lwjglVersion = "3.1.2" |
| 30 | +ext.junitPlatformVersion = "1.0.0-M5" |
| 31 | +ext.junitJupiterVersion = "5.0.0-M5" |
| 32 | +ext.log4jVersion = '2.6.2' |
| 33 | + |
| 34 | +junitPlatform { |
| 35 | + filters { |
| 36 | + engines { |
| 37 | + } |
| 38 | + tags { |
| 39 | + } |
| 40 | + } |
| 41 | + logManager 'org.apache.logging.log4j.jul.LogManager' |
| 42 | +} |
| 43 | + |
13 | 44 |
|
14 | 45 | repositories { |
15 | 46 | mavenCentral() |
@@ -105,6 +136,19 @@ dependencies { |
105 | 136 |
|
106 | 137 | // https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all |
107 | 138 | compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.5.0-beta-1' |
| 139 | + |
| 140 | + // TESTS |
| 141 | + testCompile "org.junit.platform:junit-platform-commons:$junitPlatformVersion" |
| 142 | + testRuntime "org.junit.platform:junit-platform-engine:$junitPlatformVersion" |
| 143 | + |
| 144 | + testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion" |
| 145 | + testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion" |
| 146 | + |
| 147 | + testRuntime "org.apache.logging.log4j:log4j-core:$log4jVersion" |
| 148 | + testRuntime "org.apache.logging.log4j:log4j-jul:$log4jVersion" |
| 149 | + |
| 150 | + // Only needed to run tests in an (IntelliJ) IDE(A) that bundles an older version |
| 151 | + testCompile "org.junit.platform:junit-platform-launcher:$junitPlatformVersion" |
108 | 152 | } |
109 | 153 |
|
110 | 154 | task copyToLib(type: Copy) { |
|
0 commit comments