Skip to content

Commit

Permalink
Migrate dependencies to the Java Library Gradle plugin
Browse files Browse the repository at this point in the history
  This migrates the NOVA shared Gradle scripts to use
the Java Library Plugin, which allows for easier declarations
of non-transitive dependencies (see NOVA-Team/NOVA-Monorepo#313).

# External links:
- https://docs.gradle.org/current/userguide/java_library_plugin.html
  • Loading branch information
ExE-Boss committed Mar 17, 2018
1 parent 7ecaac0 commit 201a5f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shared-scripts/java.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply from: "https://raw.githubusercontent.com/NOVA-Team/NOVA-Gradle/master/shared-scripts/common.gradle"

apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'jacoco'

tasks.withType(JavaCompile) {
Expand All @@ -12,9 +13,9 @@ tasks.withType(JavaCompile) {
}

dependencies {
testCompile "junit:junit:4.12"
testCompile "org.assertj:assertj-core:3.0.0"
testCompile "org.mockito:mockito-core:1.+"
testImplementation "junit:junit:4.+"
testImplementation "org.assertj:assertj-core:3.+"
testImplementation "org.mockito:mockito-core:1.+"
}

task sourcesJar(type: Jar, dependsOn: classes) {
Expand Down

0 comments on commit 201a5f7

Please sign in to comment.