@@ -126,9 +126,6 @@ class Tags {
126126}
127127
128128ext {
129- junit4Version = ' 4.12'
130- junitVintageVersion = ' 4.12.0-M2'
131- junitPlatformVersion = ' 1.0.0-M2'
132129 junitJupiterVersion = ' 5.0.0-M2'
133130}
134131
@@ -148,26 +145,16 @@ subprojects {
148145 }
149146
150147 dependencies {
151- // compile 'junit:junit:4.12'
148+ // Logging:
152149 compile group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.+'
153150 compile group : ' ch.qos.logback' , name : ' logback-classic' , version : ' 1.+'
154151 // You can also use the JDK's built-in logging as the back end:
155152 // compile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.5'
156153
157- // JUnit Jupiter API and TestEngine implementation
158- /* testCompile("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}")
159- testRuntime("org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}")
160-
161- // If you also want to support JUnit 3 and JUnit 4 tests
162- testCompile("junit:junit:${junit4Version}")
163- testRuntime("org.junit.vintage:junit-vintage-engine:${junitVintageVersion}")*/
164- compile " org.junit.jupiter:junit-jupiter-api:5.0.0-M2"
165- testCompile " org.junit.jupiter:junit-jupiter-api:5.0.0-M2"
166- testRuntime " org.junit.jupiter:junit-jupiter-engine:5.0.0-M2"
167- /* testCompile "junit:junit:4.12"
168- testRuntime "org.junit.vintage:junit-vintage-engine:4.12.0-M2"
169- *//* compile "org.junit.jupiter:junit-jupiter-api:5.0.0-M2"
170- compile "org.junit.vintage:junit-vintage-engine:4.12.0-M2"*/
154+ // JUnit testing:
155+ compile " org.junit.jupiter:junit-jupiter-api:${ junitJupiterVersion} "
156+ testCompile " org.junit.jupiter:junit-jupiter-api:${ junitJupiterVersion} "
157+ testRuntime " org.junit.jupiter:junit-jupiter-engine:${ junitJupiterVersion} "
171158 }
172159
173160 junitPlatform {
@@ -191,11 +178,8 @@ subprojects {
191178 main {
192179 java {
193180 srcDir projectDir
194- // exclude "*Test.java"
195- exclude " *Tests.java"
196- exclude " *JUnit.java"
197- exclude " StringInverter*.java"
198- // exclude "Queue.java"
181+ // Remove this when it's working:
182+ exclude " DynamicStringInverterTests.java"
199183 }
200184 resources {
201185 srcDir projectDir
@@ -234,7 +218,7 @@ subprojects {
234218
235219 // Exclude java sources that will not compile
236220 if (tags. compileTimeError) {
237- println " >>> Excluding " + file. name
221+ // println ">>> Excluding " + file.name
238222 sourceSets. main. java. excludes. add(file. name)
239223 } else {
240224 JavaExec javaTask = null
@@ -362,9 +346,6 @@ configure(subprojects - project(':onjava')) {
362346 compile group : ' com.google.guava' , name : ' guava' , version : ' 19.0'
363347 compile " org.openjdk.jmh:jmh-core:${ jmh.jmhVersion} "
364348 compile ' org.junit.platform:junit-platform-gradle-plugin:1.0.0-M2'
365-
366- // compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.6.2'
367- // compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.6.2'
368349 }
369350}
370351
0 commit comments