Skip to content

Commit

Permalink
Add gradle script
Browse files Browse the repository at this point in the history
  • Loading branch information
leomeinel committed Sep 12, 2022
1 parent 5beae43 commit abeb0af
Show file tree
Hide file tree
Showing 2 changed files with 177 additions and 0 deletions.
150 changes: 150 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
##############################
## Java
##############################
*.class
*.log
*.ctxt
.mtj.tmp/
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
hs_err_pid*
replay_pid*

##############################
## C++
##############################
*.d
*.slo
*.lo
*.o
*.obj
*.gch
*.pch
*.so
*.dylib
*.dll
*.mod
*.smod
*.lai
*.la
*.a
*.lib
*.exe
*.out
*.app

##############################
## C
##############################
*.ko
*.elf
*.ilk
*.map
*.exp
*.so.*
*.i*86
*.x86_64
*.hex
*.dSYM/
*.su
*.idb
*.pdb
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

##############################
## Rust
##############################
debug/
target/
Cargo.lock
**/*.rs.bk

##############################
## Lua
##############################
luac.out
*.src.rock
*.os
*.def

##############################
## Maven
##############################
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
pom.xml.bak
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar

##############################
## Gradle
##############################
bin/
build/
.gradle
.gradletasknamecache
gradle-app.setting
!gradle-wrapper.jar

##############################
## IntelliJ
##############################
out/
.idea/*
.idea_modules/
*.iml
*.ipr
*.iws

##############################
## Eclipse
##############################
.settings/
tmp/
.metadata
.classpath
.project
*.tmp
*.bak
*.swp
*~.nib
local.properties
.loadpath
.factorypath

##############################
## NetBeans
##############################
nbproject/private/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml

##############################
## Visual Studio Code
##############################
.vscode/
.code-workspace

##############################
## OS X
##############################
.DS_Store
27 changes: 27 additions & 0 deletions gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
###
# File: update-gradle.sh
# Author: Leopold Meinel ([email protected])
# -----
# Copyright (c) 2022 Leopold Meinel & contributors
# SPDX ID: GPL-3.0-or-later
# URL: https://www.gnu.org/licenses/gpl-3.0-standalone.html
# -----
###
case "$1" in
update-gradle)
DIRECTORIES=$(/usr/bin/find ~/src/ -type f -name 'build.gradle' -printf '%h\n' | sort -u)
for directory in $DIRECTORIES; do
cd "$directory"
gradle wrapper --gradle-version 7.5.1
done
;;
build-all)
DIRECTORIES=$(/usr/bin/find ~/src/ -type f -name 'build.gradle' -printf '%h\n' | sort -u)
for directory in $DIRECTORIES; do
cd "$directory"
gradle build
done
;;
esac
cd ~

0 comments on commit abeb0af

Please sign in to comment.