Skip to content

Instantly share code, notes, and snippets.

@rolroralra
Last active September 29, 2021 04:18
Show Gist options
  • Select an option

  • Save rolroralra/9b1a7654c707ab140603c89a3b2e7314 to your computer and use it in GitHub Desktop.

Select an option

Save rolroralra/9b1a7654c707ab140603c89a3b2e7314 to your computer and use it in GitHub Desktop.
Gradle

Gradle Commad Guide

Create new Gradle Builds


Gradle Setting

~/.gradle/gradle.properties

systemProp.proxySet=true
systemProp.http.proxyHost=70.10.15.10
systemProp.http.proxyPort=8080
systemProp.http.nonProxyHosts=70.121.224.52
systemProp.https.proxyHost=70.10.15.10
systemProp.https.proxyPort=8080
systemProp.https.nonProxyHosts=70.121.224.52

Gradle Init

Details

$ gradle init

Select type of project to generate:
  1: basic
  2: application
  3: library
  4: Gradle plugin
Enter selection (default: basic) [1..4] 1

Select build script DSL:
  1: Groovy
  2: Kotlin
Enter selection (default: Groovy) [1..2] 1

Project name (default: testGradle):

> Task :init
Get more help with your project: https://guides.gradle.org/creating-new-gradle-builds

BUILD SUCCESSFUL in 34s
2 actionable tasks: 2 executed

Gradle Scan

Details

$ gradlew build --scan

BUILD SUCCESSFUL in 45s
4 actionable tasks: 4 executed

Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service. Do you accept these terms? [yes, no] yes
Gradle Terms of Service accepted.

Publishing build scan...
https://gradle.com/s/psgmlo7sspwvo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment