Skip to content

Commit

Permalink
chore: pin gradle wrapper version (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt authored Oct 30, 2022
1 parent 4f1b492 commit df2f6f8
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 52 deletions.
11 changes: 1 addition & 10 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/

plugins {
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
id 'groovy-gradle-plugin'
}

repositories {
// Use the plugin portal to apply community plugins in convention plugins.
gradlePluginPortal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }

gradlePluginPortal()
}
dependencies {
implementation "com.diffplug.spotless:spotless-plugin-gradle:6.11.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/

plugins {
// Apply the common convention plugin for shared build configuration between library and application projects.
id 'xyz.keksdose.spoon.code_solver.java-common-conventions'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/

plugins {
// Apply the java Plugin to add support for Java.
id 'java'
Expand All @@ -14,8 +8,6 @@ plugins {

repositories {
mavenCentral()
gradlePluginPortal()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
// Use JUnit Jupiter for testing.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/

plugins {
// Apply the common convention plugin for shared build configuration between library and application projects.
id 'xyz.keksdose.spoon.code_solver.java-common-conventions'
Expand Down
8 changes: 1 addition & 7 deletions github-bot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ plugins {
id 'xyz.keksdose.spoon.code_solver.java-common-conventions'
}

repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
}

dependencies {
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation 'io.quarkiverse.githubapi:quarkus-github-api:1.313.1'
Expand All @@ -32,4 +26,4 @@ dependencies {
}

group 'io.github.martinwitt'
version '0.0.1'
version '0.0.1'
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 6 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
14 changes: 8 additions & 6 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
Expand All @@ -25,7 +25,7 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

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

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand Down Expand Up @@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal
Expand Down
9 changes: 0 additions & 9 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
/*
* This file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user manual at https://docs.gradle.org/7.4.2/userguide/multi_project_builds.html
* This project uses @Incubating APIs which are subject to change.
*/
rootProject.name = 'laughing-train-project'
include('code-transformation', "github-bot")

0 comments on commit df2f6f8

Please sign in to comment.