Handy Gradle Command

Posted by Ligar Mugi Syahid on March 09, 2023
1 min read · Last Modified: January 21, 2024
  • refresh depedency
    ./gradlew build --refresh-dependencies
    
  • publish to .m2 local

plugin

plugins {
    id 'maven-publish'
}
./gradlew publishToMavenLocal
  • flyway plugin
    plugins {
      id("org.flywaydb.flyway") version "X.x.x"
    }
    
    • migrate
      ./gradlew flywayMigrate
      
    • validate
      ./gradlew flywayValidate
      

Tags: [ gradle  ]