Skip to content

Commit

Permalink
Bump gradle to 5.6.4 and pegasus to 27.7.18
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerem Sahin committed Feb 13, 2020
1 parent f55e031 commit b17b91f
Show file tree
Hide file tree
Showing 17 changed files with 75 additions and 36 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ buildscript {
apply from: './repositories.gradle'
buildscript.repositories.addAll(project.repositories)
dependencies {
classpath 'com.linkedin.pegasus:gradle-plugins:23.0.19'
classpath 'com.linkedin.pegasus:gradle-plugins:27.7.18'
classpath 'com.moowork.gradle:gradle-node-plugin:1.3.1'
classpath "com.commercehub.gradle.plugin:gradle-avro-plugin:0.8.1"
}
}

final pegasusVersion = '23.0.19'
final pegasusVersion = '27.7.18'
project.ext.spec = [
'product' : [
'pegasus' : [
Expand All @@ -24,7 +25,6 @@ project.ext.spec = [

project.ext.externalDependency = [
'avro_1_7': 'org.apache.avro:avro:1.7.7',
'avroMigrationHelper': 'com.linkedin.avroutil:avro-migration-helper:0.1.0',
'cacheApi' : 'javax.cache:cache-api:1.1.0',
'commonsIo': 'commons-io:commons-io:2.4',
'commonsLang': 'commons-lang:commons-lang:2.6',
Expand All @@ -50,7 +50,7 @@ project.ext.externalDependency = [
'kafkaSerializers': 'io.confluent:kafka-avro-serializer:3.3.1',
'kafkaStreams': 'org.apache.kafka:kafka-streams:2.3.0',
'logbackClassic': 'ch.qos.logback:logback-classic:1.2.3',
'lombok': 'org.projectlombok:lombok:1.18.8',
'lombok': 'org.projectlombok:lombok:1.18.12',
'mockito': 'org.mockito:mockito-core:3.0.0',
'mysqlConnector': 'mysql:mysql-connector-java:5.1.47',
"neo4jHarness": "org.neo4j.test:neo4j-harness:3.4.11",
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Wed Jul 17 16:41:55 PDT 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
51 changes: 31 additions & 20 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env sh

#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
##
## Gradle start up script for UN*X
Expand Down Expand Up @@ -28,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
Expand Down Expand Up @@ -109,8 +125,8 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
Expand Down Expand Up @@ -138,19 +154,19 @@ if $cygwin ; then
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
i=`expr $i + 1`
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

Expand All @@ -159,14 +175,9 @@ save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
APP_ARGS=`save "$@"`

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
18 changes: 17 additions & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
Expand All @@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
Expand Down
2 changes: 2 additions & 0 deletions metadata-builders/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ dependencies {
compileOnly externalDependency.lombok
compileOnly externalDependency.findbugsAnnotations

annotationProcessor externalDependency.lombok

testCompile externalDependency.testng
testCompile externalDependency.mockito
testCompile project(':metadata-testing:metadata-test-utils')
Expand Down
4 changes: 3 additions & 1 deletion metadata-dao-impl/ebean-dao/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ dependencies {
compileOnly externalDependency.ebeanAgent
compileOnly externalDependency.lombok

annotationProcessor externalDependency.lombok

testCompile project(':metadata-testing:metadata-test-models')
testCompile project(':metadata-testing:metadata-test-utils')
testCompile externalDependency.h2
Expand All @@ -26,7 +28,7 @@ project.compileJava {
doLast {
ant.taskdef(name: 'ebean', classname: 'io.ebean.enhance.ant.AntEnhanceTask',
classpath: project.configurations.enhance.asPath)
ant.ebean(classSource: project.sourceSets.main.output.classesDir, packages: 'com.linkedin.metadata.dao',
ant.ebean(classSource: "${project.buildDir}/classes/java/main", packages: 'com.linkedin.metadata.dao',
transformArgs: 'debug=1')
}
}
2 changes: 2 additions & 0 deletions metadata-dao-impl/elasticsearch-dao/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ dependencies {
compile externalDependency.jacksonCore
compile externalDependency.jacksonDataBind

annotationProcessor externalDependency.lombok

testCompile project(':metadata-testing:metadata-test-utils')
testCompile project(':metadata-testing:metadata-test-models')
testCompile externalDependency.testng
Expand Down
2 changes: 2 additions & 0 deletions metadata-dao-impl/kafka-producer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ dependencies {

compileOnly externalDependency.lombok

annotationProcessor externalDependency.lombok

testCompile externalDependency.mockito
testCompile externalDependency.testng
}
2 changes: 2 additions & 0 deletions metadata-dao/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ dependencies {

compileOnly externalDependency.lombok

annotationProcessor externalDependency.lombok

testCompile project(':metadata-testing:metadata-test-models')
testCompile project(':metadata-testing:metadata-test-utils')
testCompile externalDependency.guava
Expand Down
4 changes: 0 additions & 4 deletions metadata-events/mxe-avro-1.7/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
plugins {
id 'com.commercehub.gradle.plugin.avro' version '0.8.0'
}

configurations {
avsc
}
Expand Down
3 changes: 0 additions & 3 deletions metadata-events/mxe-utils-avro-1.7/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ dependencies {
compile project(':metadata-events:mxe-avro-1.7')
compile project(':metadata-models')
compile spec.product.pegasus.dataAvro1_6
compile externalDependency.lombok
compile externalDependency.commonsIo

testCompile project(':metadata-dao')
testCompile project(':metadata-testing:metadata-test-utils')
testCompile externalDependency.testng

avroOriginal project(path: ':metadata-models', configuration: 'avroSchema')
}
Expand Down
2 changes: 2 additions & 0 deletions metadata-jobs/mae-consumer-job/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ dependencies {

compileOnly externalDependency.lombok

annotationProcessor externalDependency.lombok

runtime externalDependency.logbackClassic
}

Expand Down
2 changes: 2 additions & 0 deletions metadata-jobs/mce-consumer-job/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ dependencies {

compileOnly externalDependency.lombok

annotationProcessor externalDependency.lombok

runtime externalDependency.logbackClassic
}

Expand Down
2 changes: 2 additions & 0 deletions metadata-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ dependencies {

compileOnly externalDependency.lombok

annotationProcessor externalDependency.lombok

testCompile project(':metadata-testing:metadata-test-utils')
testCompile externalDependency.testng
}
2 changes: 2 additions & 0 deletions metadata-validators/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ dependencies {

compileOnly externalDependency.lombok

annotationProcessor externalDependency.lombok

testCompile externalDependency.guava
}
4 changes: 3 additions & 1 deletion repositories.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
repositories {
gradlePluginPortal()
jcenter()
mavenLocal()
mavenCentral()
maven {
url "https://packages.confluent.io/maven/"
}
maven {
url "https://dl.bintray.com/radai-rosenblatt/avro-util/"
url "https://dl.bintray.com/gradle/gradle-plugins"
}
maven {
url "https://plugins.gradle.org/m2/"
Expand Down

0 comments on commit b17b91f

Please sign in to comment.