在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):gdubw/gng开源软件地址(OpenSource Url):https://github.com/gdubw/gng开源编程语言(OpenSource Language):Shell 100.0%开源软件介绍(OpenSource Introduction):GNG is the successor of gdub. It keeps the original It is written totally in bash script. Quick StartHomebrew#Install gng
brew tap gdubw/gng
brew install gng Self-Extracting InstallerThe self-extracting installer is created with makeself. If you are interested in the packaging details , Please see release.yml. # Downloading the latest release
curl -fsSL https://github.com/gdubw/gng/releases/latest/download/gng-installer.sh -o gng-installer.sh
sudo bash ./gng-installer.sh After Installation is complete: # Creates a new Gradle project with Gradle wrapper
gng wrapper -d example-project
cd example-project
# From now on, always type `gw` whenever you need to type `gradlew`
gw GNG is Not GradleGNG is a script that automatically search your This is originally inspired by gdub and gradlew-bootstrap. What's the problem?I worked with a lot of gradle projects, every project has its own Gradle Wrapper. So the global installed one, normally
installed with But keep typing I am a heavy Gradle user, I always need to create a new Gradle project for trying some new ideas, without the globally installed gradle , it is not possible installing Gradle Wrapper into a brand-new project. You might interest in these discussions.
UsageJust type If you don't have any Gradle or Gradle Wrapper installed, please don't worry. just type 'gng' and 'gw'There are two commands
gng wrapper -h
Generates a Gradle Wrapper
Usage: gng wrapper [-v|--version <arg>] [-t|--distribution-type <arg>] [-m|--mirror <arg>] [-h|--help] [ -d|--destination-dir <arg>
-v, --version: Gradle Version (default: 'latest', version information is from https://services.gradle.org/versions/current, visit https://services.gradle.org/versions/all for all available versions)
-t, --distribution-type: Gradle Distribution Type (default: 'all')
-m, --mirror: Gradle Distribution Mirror URL Prefix(Optional with no default value, The url prefix replaces https://services.gradle.org/distributions/)
It replaces the whole distributionUrl except the file part in a URL. For example, if specify '-m "https://example.com/gradle/"', then
"https://services.gradle.org/distributions/gradle-6.8-all.zip" will become "https://example.com/gradle/gradle-6.8-all.zip"
-d, --destination-dir : Your Gradle project root directory. (default: 'Your current working directory retrieved using ${PWD}')
-h, --help: Prints help Please note that Example: The following command will create a directory 'test' and install a copy of Gradle Wrapper with the latest version Gradle. gng wrapper -d test It will output like this(version number may vary as time goes by): Fetching the latest Gradle version from services.gradle.org
The latest Gradle version is 6.8.1
Installing Gradle Wrapper in test. (version=6.8.1, distributionType=all, mirrorUrl=<Not Specified>) More examples
InstallationHomebrewbrew tap gdubw/gng
brew install gng Installing from sourcegit clone https://github.com/gdubw/gng.git
cd gng
sudo ./install.sh
Aliasing the |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论