EclipseのGradleプロジェクト作成方法比較 ref: http://qiita.com/grachro/items/d1ebad3857a794895426
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
/* | |
* This build file was auto generated by running the Gradle 'init' task | |
* by 'grachro' at '16/03/21 21:13' with Gradle 2.9 | |
* | |
* This generated file contains a sample Java project to get you started. | |
* For more details take a look at the Java Quickstart chapter in the Gradle | |
* user guide available at https://docs.gradle.org/2.9/userguide/tutorial_java_projects.html | |
*/ | |
// Apply the java plugin to add support for Java | |
apply plugin: 'java' | |
// In this section you declare where to find the dependencies of your project | |
repositories { | |
// Use 'jcenter' for resolving your dependencies. | |
// You can declare any Maven/Ivy/file repository here. | |
jcenter() | |
} | |
// In this section you declare the dependencies for your production and test code | |
dependencies { | |
// The production code uses the SLF4J logging API at compile time | |
compile 'org.slf4j:slf4j-api:1.7.13' | |
// Declare the dependency for your favourite test framework you want to use in your tests. | |
// TestNG is also supported by the Gradle Test task. Just change the | |
// testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add | |
// 'test.useTestNG()' to your build script. | |
testCompile 'junit:junit:4.12' | |
} | |
} |
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
$ gradle --version | |
------------------------------------------------------------ | |
Gradle 2.12 |
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
mkdir create-gradle-cmd | |
cd create-gradle-cmd/ | |
gradle init --type java-library |
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
$ ls -la | |
total 40 | |
drwxr-xr-x 3 grachro wheel 102 3 21 21:32 .gradle | |
-rw-r--r-- 1 grachro wheel 1216 3 21 21:32 build.gradle | |
drwxr-xr-x 3 grachro wheel 102 3 21 21:32 gradle | |
-rwxr-xr-x 1 grachro wheel 4971 3 21 21:32 gradlew | |
-rw-r--r-- 1 grachro wheel 2404 3 21 21:32 gradlew.bat | |
-rw-r--r-- 1 grachro wheel 651 3 21 21:32 settings.gradle | |
drwxr-xr-x 4 grachro wheel 136 3 21 21:32 src |
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
gradle eclipse |
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
$ ls -la | |
total 56 | |
drwxr-xr-x 12 grachro wheel 408 3 21 21:45 . | |
drwxr-xr-x 4 grachro wheel 136 3 21 21:32 .. | |
-rw-r--r-- 1 grachro wheel 1343 3 21 21:45 .classpath | |
drwxr-xr-x 3 grachro wheel 102 3 21 21:32 .gradle | |
-rw-r--r-- 1 grachro wheel 360 3 21 21:45 .project | |
drwxr-xr-x 3 grachro wheel 102 3 21 21:45 .settings | |
-rw-r--r-- 1 grachro wheel 1240 3 21 21:41 build.gradle | |
drwxr-xr-x 3 grachro wheel 102 3 21 21:32 gradle | |
-rwxr-xr-x 1 grachro wheel 4971 3 21 21:32 gradlew | |
-rw-r--r-- 1 grachro wheel 2404 3 21 21:32 gradlew.bat | |
-rw-r--r-- 1 grachro wheel 651 3 21 21:32 settings.gradle | |
drwxr-xr-x 4 grachro wheel 136 3 21 21:32 src |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment