brew install gradle
echo 'export JAVA_HOME=$(/usr/libexec/java_home)' >> ~/.bash_profile
echo 'export GRADLE_HOME=/usr/local/opt/gradle/libexec' >> ~/.bash_profile
echo 'export PATH=$PATH:$JAVA_HOME/bin' >> ~/.bash_profile
source ~/.bash_profile
gradle init --type java-library
gradle build
gradle test
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'application'
mainClassName = "com.lbadvisor.interview.javaje.App"
repositories {
jcenter()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
testCompile 'junit:junit:4.12'
}
View | Tool Windows | Gradle
Click this button to refresh all registered Gradle projects after changes have been made to a Gradle script.