Skip to content

Instantly share code, notes, and snippets.

@tiqwab
Created April 14, 2016 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiqwab/75f6c6e9f9df19b0d3fb4f0bb96691cf to your computer and use it in GitHub Desktop.
Save tiqwab/75f6c6e9f9df19b0d3fb4f0bb96691cf to your computer and use it in GitHub Desktop.
Example of build.gradle
subprojects {
apply plugin: 'eclipse'
apply plugin: 'java'
// 全ソースがUTF-8であることを指定する、
// この記述であればsourceSetが増えても対応可能。
def defaultEncoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = defaultEncoding
}
// コンパイル対象バージョンの指定
sourceCompatibility = 1.8
targetCompatibility = 1.8
// version指定
version = '0.0.1-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile 'org.projectlombok:lombok:1.16.8'
testCompile 'junit:junit:4.12'
}
}
project(':module-core') {}
// 正常実行確認用
task hello << {
println "hello"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment