Created
April 14, 2016 14:10
-
-
Save tiqwab/75f6c6e9f9df19b0d3fb4f0bb96691cf to your computer and use it in GitHub Desktop.
Example of build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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