Skip to content

Commit

Permalink
gradle dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodo1981 committed Nov 7, 2018
1 parent 4c397d1 commit 40f4746
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 36 deletions.
15 changes: 0 additions & 15 deletions annotationprocessortesting-kt/build.gradle

This file was deleted.

14 changes: 14 additions & 0 deletions annotationprocessortesting-kt/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
java
id("kotlin")
id("kotlin-kapt")
}

dependencies {
implementation(Deps.kotlinStdLib)
implementation(project(":autovalue"))
kapt(project(":processor"))
kapt(project(":autovalue"))

testImplementation(Deps.junit)
}
1 change: 0 additions & 1 deletion annotationprocessortesting/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {

dependencies {
implementation(project(":autovalue"))
implementation(Deps.autoValueProcessor)
annotationProcessor(project(":processor"))
annotationProcessor(project(":autovalue"))

Expand Down
19 changes: 0 additions & 19 deletions autovalue/build.gradle

This file was deleted.

19 changes: 19 additions & 0 deletions autovalue/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
plugins {
java
id("kotlin")
}

dependencies {
compile(project(":core"))
compile(project(":annotation"))
compile(project(":processor-common"))
compile(Deps.autoValueAnnotation)
implementation(Deps.javaPoet)
implementation(Deps.autoService)
implementation(Deps.kotlinStdLib)
implementation(Deps.autoValueProcessor)

testImplementation(Deps.junit)
testImplementation(Deps.truth)
testImplementation(Deps.compileTesting)
}
20 changes: 19 additions & 1 deletion buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
object Versions {
const val autoService = "1.0-rc4"
const val autoValue = "1.6.2"
const val junit = "4.12"
const val kotlin = "1.3.0"
const val javaPoet = "1.11.1"
const val compileTesting = "0.15"
const val truth = "0.42"
}

object Deps {
// testing
const val junit = "junit:junit:${Versions.junit}"
const val compileTesting = "com.google.testing.compile:compile-testing:${Versions.compileTesting}"
const val truth = "com.google.truth:truth:${Versions.truth}"

// google auto
const val autoService ="com.google.auto.service:auto-service:${Versions.autoService}"
const val autoValueProcessor = "com.google.auto.value:auto-value:${Versions.autoValue}"
const val autoValueAnnotation = "com.google.auto.value:auto-value-annotations:${Versions.autoValue}"
const val junit = "junit:junit:${Versions.junit}"

// kotlin
const val kotlinStdLib = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}"
const val kotlinReflect = "org.jetbrains.kotlin:kotlin-reflect:${Versions.kotlin}"
const val kotlinTestJunit = "org.jetbrains.kotlin:kotlin-test-junit:${Versions.kotlin}"

const val javaPoet = "com.squareup:javapoet:${Versions.javaPoet}"
}

0 comments on commit 40f4746

Please sign in to comment.