Skip to content

Commit

Permalink
Gradle: declare compile time only dependencies with Java plugin #229
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Nov 4, 2016
1 parent e224a7c commit 885264a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vtm/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
apply plugin: 'java'
apply plugin: 'maven'

configurations { providedCompile }

dependencies {
compile 'org.slf4j:slf4j-api:1.7.21'
providedCompile 'com.google.code.findbugs:annotations:2.0.1'
compileOnly 'com.google.code.findbugs:jsr305:3.0.1'
}

sourceSets {
main.java.srcDirs = ['src']
main.resources.srcDirs = ['resources']
main.compileClasspath += configurations.providedCompile
}

if (project.hasProperty("SONATYPE_USERNAME")) {
Expand Down

0 comments on commit 885264a

Please sign in to comment.