Skip to content

Instantly share code, notes, and snippets.

@mingliangguo
Last active December 12, 2021 20:29
Show Gist options
  • Save mingliangguo/0d25ed9a445003cf4652781afa07b4f8 to your computer and use it in GitHub Desktop.
Save mingliangguo/0d25ed9a445003cf4652781afa07b4f8 to your computer and use it in GitHub Desktop.
gradle recipe
gradle wrapper --gradle-version=5.6.4

# publish a subproject to maven local
./gradlew build -x check -x test :sub-project:publishToMavenLocal

check if an extra gradle file exists and apply it

  if (file("../extra.gradle").exists()) {
    println("apply the extra gralde fragment ...")
    apply from: '../extra.gradle'
  } else {
    println("extra gralde file not found ..." + file("..extra.gradle"))
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment