Skip to content

Commit

Permalink
chore: Update gradle version to 7.2 (#101)
Browse files Browse the repository at this point in the history
* Updated gradle version to 6.8.3

* Update gradle version to 7.2

* Update build.gradle

* Minor changes

* Minor changes

* Remove max heap

* Change runtime to runtimeOnly

* Minor changes

* Minor changes

* Revert few changes
  • Loading branch information
vaish3496 authored and ravisuhag committed Sep 3, 2021
1 parent e3f321c commit f06e5d8
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 89 deletions.
87 changes: 47 additions & 40 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.17'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.7"
classpath "org.ajoberstar:gradle-git:1.6.0"
}
Expand All @@ -14,12 +14,19 @@ plugins {
id 'idea'
id 'checkstyle'
id 'jacoco'
id "com.google.protobuf" version "0.8.7"
id 'nebula.ospackage' version '3.5.0'
id "com.google.protobuf" version "0.8.17"
id 'nebula.ospackage' version '8.6.3'
id 'io.franzbecker.gradle-lombok' version '1.14'
id 'maven-publish'
}

configurations {
compile
testCompile
compileClasspath
runtime
}

lombok {
version = '1.18.4'
sha256 = ""
Expand All @@ -37,7 +44,7 @@ repositories {
mavenCentral()
jcenter()
maven {
url "http://packages.confluent.io/maven"
url "https://packages.confluent.io/maven"
}
}

Expand All @@ -51,44 +58,44 @@ private Properties loadEnv() {
def mainClassName = "io.odpf.firehose.launch.Main"

dependencies {
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.1.0'
compile group: 'com.google.protobuf', name: 'protobuf-java-util', version: '3.1.0'
compile group: 'com.newrelic.agent.java', name: 'newrelic-api', version: '3.31.1'
compile group: 'com.timgroup', name: 'java-statsd-client', version: '3.1.0'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
compile group: 'org.aeonbits.owner', name: 'owner', version: '1.0.9'
compile group: 'com.zaxxer', name: 'HikariCP', version: '2.6.0'
compile group: 'com.google.guava', name: 'guava', version: '23.5-jre'
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
compile group: 'com.samskivert', name: 'jmustache', version: '1.13'
compile group: 'org.postgresql', name: 'postgresql', version: '9.4.1212'
compile group: 'org.apache.kafka', name: 'kafka-clients', version: '2.4.0'
compile group: 'org.apache.commons', name: 'commons-jexl', version: '2.1'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
compile group: 'com.gojek', name: 'stencil', version: '4.2.0' exclude group: 'org.slf4j'
compile group: 'org.influxdb', name: 'influxdb-java', version: '2.5'
compile group: 'com.jayway.jsonpath', name: 'json-path', version: '2.4.0'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.7'
compile group: 'redis.clients', name: 'jedis', version: '3.0.1'
compile group: 'io.opentracing', name: 'opentracing-api', version: '0.33.0'
compile group: 'io.opentracing.contrib', name: 'opentracing-kafka-client', version: '0.1.4'
compile group: 'io.jaegertracing', name: 'jaeger-client', version: '1.0.0'
compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '6.3.1'
compile 'io.confluent:monitoring-interceptors:3.0.0'
compile "io.grpc:grpc-all:1.18.0"
compile group: 'org.jfrog.buildinfo', name: 'build-info-extractor', version: '2.6.3'
compile group: 'com.google.gradle', name: 'osdetector-gradle-plugin', version: '1.2.1'
compile group: 'org.apache.ivy', name: 'ivy', version: '2.2.0'
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.12.8'
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '3.1.0'
implementation group: 'com.google.protobuf', name: 'protobuf-java-util', version: '3.1.0'
implementation group: 'com.newrelic.agent.java', name: 'newrelic-api', version: '3.31.1'
implementation group: 'com.timgroup', name: 'java-statsd-client', version: '3.1.0'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
implementation group: 'org.aeonbits.owner', name: 'owner', version: '1.0.9'
implementation group: 'com.zaxxer', name: 'HikariCP', version: '2.6.0'
implementation group: 'com.google.guava', name: 'guava', version: '23.5-jre'
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
implementation group: 'com.samskivert', name: 'jmustache', version: '1.13'
implementation group: 'org.postgresql', name: 'postgresql', version: '9.4.1212'
implementation group: 'org.apache.kafka', name: 'kafka-clients', version: '2.4.0'
implementation group: 'org.apache.commons', name: 'commons-jexl', version: '2.1'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.7'
implementation group: 'com.gojek', name: 'stencil', version: '4.2.0' exclude group: 'org.slf4j'
implementation group: 'org.influxdb', name: 'influxdb-java', version: '2.5'
implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.4.0'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.7'
implementation group: 'redis.clients', name: 'jedis', version: '3.0.1'
implementation group: 'io.opentracing', name: 'opentracing-api', version: '0.33.0'
implementation group: 'io.opentracing.contrib', name: 'opentracing-kafka-client', version: '0.1.4'
implementation group: 'io.jaegertracing', name: 'jaeger-client', version: '1.0.0'
implementation group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '6.3.1'
implementation 'io.confluent:monitoring-interceptors:3.0.0'
implementation "io.grpc:grpc-all:1.18.0"
implementation group: 'org.jfrog.buildinfo', name: 'build-info-extractor', version: '2.6.3'
implementation group: 'com.google.gradle', name: 'osdetector-gradle-plugin', version: '1.2.1'
implementation group: 'org.apache.ivy', name: 'ivy', version: '2.2.0'
implementation group: 'org.mongodb', name: 'mongo-java-driver', version: '3.12.8'


testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile 'org.mockito:mockito-core:2.0.99-beta'
testCompile "com.github.tomakehurst:wiremock:2.3.1"
testCompile group: 'io.opentracing', name: 'opentracing-mock', version: '0.33.0'
testCompile group: 'org.mock-server', name: 'mockserver-netty', version: '3.10.5'
testCompile gradleTestKit()
testImplementation group: 'junit', name: 'junit', version: '4.11'
testImplementation 'org.mockito:mockito-core:2.0.99-beta'
testImplementation "com.github.tomakehurst:wiremock:2.3.1"
testImplementation group: 'io.opentracing', name: 'opentracing-mock', version: '0.33.0'
testImplementation group: 'org.mock-server', name: 'mockserver-netty', version: '3.10.5'
testImplementation gradleTestKit()
}

protobuf {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Feb 17 12:14:22 IST 2017
#Wed Aug 25 23:42:32 IST 2021
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip
zipStoreBase=GRADLE_USER_HOME
70 changes: 43 additions & 27 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#!/usr/bin/env bash
#!/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.
#

##############################################################################
##
Expand Down Expand Up @@ -28,16 +44,16 @@ 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=''

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn ( ) {
warn () {
echo "$*"
}

die ( ) {
die () {
echo
echo "$*"
echo
Expand Down Expand Up @@ -66,6 +82,7 @@ esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
Expand Down Expand Up @@ -109,10 +126,11 @@ 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"`

# We build the pattern for arguments to be converted via cygpath
Expand All @@ -138,32 +156,30 @@ 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

# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
APP_ARGS=`save "$@"`

# 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
# 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"

exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
exec "$JAVACMD" "$@"
43 changes: 24 additions & 19 deletions 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 @@ -13,15 +29,18 @@ if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@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=""

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
if "%ERRORLEVEL%" == "0" goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand All @@ -35,7 +54,7 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init
if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
Expand All @@ -45,28 +64,14 @@ echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down

0 comments on commit f06e5d8

Please sign in to comment.