Skip to content

Commit

Permalink
Centralized versions in main Gradle build file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Mar 30, 2019
1 parent bf68749 commit 37a89d2
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 59 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ out
.DS_Store
lib/kotlin-*
build
.history
25 changes: 24 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,30 @@ allprojects {
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'maven'

ext {
bndlib = '3.5.0'
findbugs = '3.0.2'
groovy = '2.4.12'
gson = '2.8.2'
guice = '4.2.2'
inject = '1'
jaxb = '2.3.0'
jcommander = '1.72'
kotlin = '1.2.71'
maven = '3.5.2'
mavenResolver = '1.1.0'
okhttp = '3.9.1'
okio = '1.13.0'
retrofit = '2.3.0'
slf4j = '1.7.3'
spark = '2.6.0'
testng = '6.12'

junit = '4.12'
junitJupiter = '5.1.0'
junitPlatform = '1.1.0'
}

repositories {
mavenCentral()
Expand Down
70 changes: 35 additions & 35 deletions modules/kobalt-plugin-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
id "com.github.johnrengelman.shadow" version "5.0.0"
id 'com.github.johnrengelman.shadow' version '5.0.0'
}

dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.2.71'
implementation 'org.apache.maven:maven-aether-provider:3.3.9'
implementation 'org.apache.maven.resolver:maven-resolver-api:1.1.0'
implementation 'org.apache.maven.resolver:maven-resolver-spi:1.1.0'
implementation 'org.apache.maven.resolver:maven-resolver-util:1.1.0'
implementation 'org.apache.maven.resolver:maven-resolver-impl:1.1.0'
implementation 'org.apache.maven.resolver:maven-resolver-connector-basic:1.1.0'
implementation 'org.apache.maven.resolver:maven-resolver-transport-http:1.1.0'
implementation 'org.apache.maven.resolver:maven-resolver-transport-file:1.1.0'
implementation "biz.aQute.bnd:biz.aQute.bndlib:$bndlib"
implementation "com.google.code.findbugs:jsr305:$findbugs"
implementation "com.sparkjava:spark-core:$spark"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp"
implementation 'commons-io:commons-io:2.6'
implementation 'io.reactivex:rxjava:1.3.3'
implementation 'com.squareup.okio:okio:1.13.0'
implementation 'javax.inject:javax.inject:1'
implementation 'com.google.inject:guice:4.2.2'
implementation 'com.google.inject.extensions:guice-assistedinject:4.2.2'
implementation 'com.beust:jcommander:1.72'
implementation 'org.apache.maven:maven-model:3.5.2'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'biz.aQute.bnd:biz.aQute.bndlib:3.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
implementation 'com.sparkjava:spark-core:2.6.0'
implementation 'org.codehaus.groovy:groovy:2.4.12'
implementation "javax.inject:javax.inject:$inject"
implementation "javax.xml.bind:jaxb-api:$jaxb"
implementation 'org.apache.commons:commons-compress:1.15'
implementation 'commons-io:commons-io:2.6'
implementation 'org.junit.platform:junit-platform-surefire-provider:1.1.0'
implementation 'org.junit.platform:junit-platform-runner:1.1.0'
implementation 'org.junit.platform:junit-platform-engine:1.1.0'
implementation 'org.junit.platform:junit-platform-console:1.1.0'
implementation 'org.junit.jupiter:junit-jupiter-engine:5.1.0'
implementation 'org.junit.vintage:junit-vintage-engine:5.1.0'
implementation 'org.testng.testng-remote:testng-remote:1.3.2'
implementation 'org.testng:testng:6.12'
implementation 'org.apache.maven:maven-aether-provider:3.3.9'
implementation "org.apache.maven.resolver:maven-resolver-api:$mavenResolver"
implementation "org.apache.maven.resolver:maven-resolver-connector-basic:$mavenResolver"
implementation "org.apache.maven.resolver:maven-resolver-impl:$mavenResolver"
implementation "org.apache.maven.resolver:maven-resolver-spi:$mavenResolver"
implementation "org.apache.maven.resolver:maven-resolver-transport-file:$mavenResolver"
implementation "org.apache.maven.resolver:maven-resolver-transport-http:$mavenResolver"
implementation "org.apache.maven.resolver:maven-resolver-util:$mavenResolver"
implementation "org.codehaus.groovy:groovy:$groovy"
implementation 'org.eclipse.jgit:org.eclipse.jgit:4.9.0.201710071750-r'
implementation 'org.slf4j:slf4j-simple:1.7.3'
implementation 'javax.xml.bind:jaxb-api:2.3.0'
implementation "org.junit.jupiter:junit-jupiter-engine:$junitJupiter"
implementation "org.junit.platform:junit-platform-console:$junitPlatform"
implementation "org.junit.platform:junit-platform-engine:$junitPlatform"
implementation "org.junit.platform:junit-platform-runner:$junitPlatform"
implementation "org.junit.platform:junit-platform-surefire-provider:$junitPlatform"
implementation "org.junit.vintage:junit-vintage-engine:$junitJupiter"
implementation "org.slf4j:slf4j-simple:$slf4j"
implementation "org.testng:testng:$testng"
implementation 'org.testng.testng-remote:testng-remote:1.3.2'
implementation "com.beust:jcommander:$jcommander"
implementation "com.google.code.gson:gson:$gson"
implementation "com.google.inject:guice:$guice"
implementation "com.google.inject.extensions:guice-assistedinject:$guice"
implementation "com.squareup.okio:okio:$okio"
implementation "com.squareup.retrofit2:converter-gson:$retrofit"
implementation "com.squareup.retrofit2:retrofit:$retrofit"
implementation "org.apache.maven:maven-model:$maven"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin"
}

shadowJar {
Expand Down
45 changes: 22 additions & 23 deletions modules/kobalt/build.gradle
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@

plugins {
id 'org.jetbrains.kotlin.jvm' version '1.2.71'
id "com.github.johnrengelman.shadow" version "5.0.0"
id 'com.github.johnrengelman.shadow' version '5.0.0'
}

dependencies {
implementation project(':wrapper')
implementation project(':kobalt-plugin-api')
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.2.71'
implementation 'org.jetbrains.kotlin:kotlin-compiler-embeddable:1.2.71'
implementation "biz.aQute.bnd:biz.aQute.bndlib:$bndlib"
implementation 'com.github.spullara.mustache.java:compiler:0.9.5'
implementation 'javax.inject:javax.inject:1'
implementation 'com.google.inject:guice:4.2.2'
implementation 'com.google.inject.extensions:guice-assistedinject:4.2.2'
implementation 'com.beust:jcommander:1.72'
implementation 'org.apache.maven:maven-model:3.5.2'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'biz.aQute.bnd:biz.aQute.bndlib:3.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
implementation 'com.sparkjava:spark-core:2.6.0'
implementation 'org.codehaus.groovy:groovy:2.4.12'
implementation 'org.apache.maven.resolver:maven-resolver-spi:1.1.0'
implementation 'javax.xml.bind:jaxb-api:2.3.0'
implementation 'com.sun.xml.bind:jaxb-impl:2.3.0'
implementation 'com.sun.xml.bind:jaxb-core:2.3.0'
implementation "com.google.code.findbugs:jsr305:$findbugs"
implementation "com.sparkjava:spark-core:$spark"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp"
implementation 'com.sun.activation:javax.activation:1.2.0'
implementation "com.sun.xml.bind:jaxb-core:$jaxb"
implementation "com.sun.xml.bind:jaxb-impl:$jaxb"
implementation "javax.inject:javax.inject:$inject"
implementation "javax.xml.bind:jaxb-api:$jaxb"
implementation "org.apache.maven.resolver:maven-resolver-spi:$mavenResolver"
implementation "org.codehaus.groovy:groovy:$groovy"
implementation "com.beust:jcommander:$jcommander"
implementation "com.google.code.gson:gson:$gson"
implementation "com.google.inject:guice:$guice"
implementation "com.google.inject.extensions:guice-assistedinject:$guice"
implementation "com.squareup.retrofit2:converter-gson:$retrofit"
implementation "com.squareup.retrofit2:retrofit:$retrofit"
implementation "org.apache.maven:maven-model:$maven"
implementation "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlin"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin"
testImplementation 'org.assertj:assertj-core:3.8.0'
testImplementation 'org.jetbrains.kotlin:kotlin-test:1.2.71'
testImplementation 'org.testng:testng:6.12'
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin"
testImplementation "org.testng:testng:$testng"
}

sourceSets {
Expand Down

0 comments on commit 37a89d2

Please sign in to comment.