Skip to content

Commit 9b4ebe8

Browse files
committed
Revert to before I tried Ben's notes
1 parent 37c5413 commit 9b4ebe8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
buildscript {
22
repositories {
3+
mavenLocal()
34
jcenter()
5+
mavenCentral()
46
}
57
dependencies {
68
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M2'
@@ -14,6 +16,7 @@ plugins {
1416

1517
import org.gradle.internal.jvm.Jvm
1618
import org.apache.tools.ant.util.TeeOutputStream
19+
boolean debug = false
1720

1821
class Tags {
1922
Boolean hasMainMethod = false
@@ -155,8 +158,7 @@ subprojects {
155158
// compile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.5'
156159

157160
// JUnit testing:
158-
// Commented as per Ben
159-
// compile "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
161+
compile "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
160162
testCompile "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
161163
testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
162164
}
@@ -226,6 +228,7 @@ subprojects {
226228
if (file.name.endsWith('.java')) {
227229

228230
Tags tags = new Tags(file)
231+
if(debug && tags.hasTags()) println tags
229232

230233
// Exclude java sources that will not compile
231234
if (tags.compileTimeError) {
@@ -374,8 +377,7 @@ configure(subprojects - project(':onjava')) {
374377
compile project(':onjava')
375378
compile group: 'com.google.guava', name: 'guava', version: '19.0'
376379
compile "org.openjdk.jmh:jmh-core:${jmh.jmhVersion}"
377-
// commented as per Ben:
378-
// compile 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M2'
380+
compile 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M2'
379381
}
380382
}
381383

0 commit comments

Comments
 (0)