diff --git a/build.gradle b/build.gradle index 478c5ac..080c1d5 100644 --- a/build.gradle +++ b/build.gradle @@ -140,6 +140,10 @@ dependencies { transitive = false } } + if (propertyBool('enable_junit_testing')) { + testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' + } } apply from: 'gradle/scripts/dependencies.gradle' diff --git a/gradle.properties b/gradle.properties index 2381506..1d72361 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,6 +9,9 @@ use_modern_java_syntax = false generate_sources_jar = true generate_javadocs_jar = false +# Testing +enable_junit_testing = true + # Mod Information # HIGHLY RECOMMEND complying with SemVer for mod_version: https://semver.org/ mod_version = 1.0.0