gradle tasks
로 실행 가능 작업 가능
apply plugin: 'java'
gradle build
classes 파일, reports파일, libs 파일
이렇게가 생성될 수 있음
repositories {
mavenCentral()
}
종속성 추가 가능
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
implementation "joda-time:joda-time:2.2"
testImplementation "junit:junit:4.12"
}
이런 느낌으로 작성 가능
implementation : 컴파일 하는 것에 필요. 런타임에 코드 실행시 컨테이너에서 제공한다
tsetImplimentsation : 테스트 컴파일 및 실행에 사용되지만 프로젝트의 런타임 코드를 실행, 빌드에 필요 없음.
https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
maven은 라이프사이클이 있음
gradle도 이와 비슷한 작업 가능
clean : BasePlugin 에서 제공하는 태스크 사용
compile : classes 에서 제공하는 작업을 사용한다. 리소스 필터링도 작업
https://docs.gradle.org/current/userguide/migrating_from_maven.html
gradle 옵션들
https://bepoz-study-diary.tistory.com/372