Skip to content

Commit

Permalink
Correct the usage of google.auto:value depedency to compileOnly/testC…
Browse files Browse the repository at this point in the history
…ompileOnly
  • Loading branch information
bdleitner committed Jun 12, 2017
1 parent b4cbbb5 commit a57ab6e
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.ltgt.gradle:gradle-apt-plugin:0.8"
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.ltgt.gradle:gradle-apt-plugin:0.8"
}
}

group 'com.bdl.annotation.processing'
version '1.0-SNAPSHOT'

repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}

apply plugin: 'maven'
Expand All @@ -29,39 +29,42 @@ sourceCompatibility = 1.8
targetCompatibility = 1.8

ext {
JUNIT_VERSION = '4.2'
GOOGLE_TRUTH_VERSION = '0.28'
JUNIT_VERSION = '4.2'
GOOGLE_TRUTH_VERSION = '0.28'
}

dependencies {
compile 'com.google.auto.value:auto-value:1.3'
compile 'com.google.code.findbugs:jsr305:latest.release'
compile 'com.google.guava:guava:19.0'
compile 'com.google.code.findbugs:jsr305:latest.release'
compile 'com.google.guava:guava:19.0'

compileOnly 'com.google.auto.value:auto-value:1.4.1'

testCompile "com.google.truth:truth:${GOOGLE_TRUTH_VERSION}"
testCompile "junit:junit:${JUNIT_VERSION}"
testCompile 'com.google.testing.compile:compile-testing:0.5'

testCompile "com.google.truth:truth:${GOOGLE_TRUTH_VERSION}"
testCompile "junit:junit:${JUNIT_VERSION}"
testCompile 'com.google.testing.compile:compile-testing:0.5'
testCompileOnly 'com.google.auto.value:auto-value:1.4.1'

apt 'com.google.auto.value:auto-value:1.3'
testApt 'com.google.auto.value:auto-value:1.3'
testApt 'com.google.guava:guava:19.0'
apt 'com.google.auto.value:auto-value:1.4.1'
testApt 'com.google.auto.value:auto-value:1.4.1'
testApt 'com.google.guava:guava:19.0'
}

javadoc {
failOnError false
failOnError false
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
archives sourcesJar
archives javadocJar
}

0 comments on commit a57ab6e

Please sign in to comment.