Permalink
Browse files

Slightly adjusted the template scripts of the wizards.

  • Loading branch information...
1 parent 0022011 commit 9850220e969da9e0c30bbb69b3bebaa93da1cfc3 @kelemen committed Nov 15, 2012
@@ -11,6 +11,18 @@ String mavenVersion = '${MAVEN_VERSION}'
sourceCompatibility = '${SOURCE_LEVEL}'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
+repositories {
+ mavenCentral();
+ // You may define additional repositories, or even remove "mavenCentral()".
+ // Read more about repositories here:
+ // http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:repositories
+}
+
+dependencies {
+ // Adding dependencies here will add the dependencies to each subproject.
+ testCompile group: 'junit', name: 'junit', version: '4.10'
+}
+
String mavenArtifactId = name
group = mavenGroupId
@@ -34,14 +46,6 @@ configure(install.repositories.mavenInstaller) {
}
}
-repositories {
- mavenCentral();
-}
-
-dependencies {
- testCompile group: 'junit', name: 'junit', version: '4.10'
-}
-
task createFolders(description: 'Creates the source folders if they do not exist.') doLast {
sourceSets*.allSource*.srcDirs*.each { File srcDir ->
if (!srcDir.isDirectory()) {
@@ -16,6 +16,9 @@ if (!hasProperty('mainClass')) {
repositories {
mavenCentral()
+ // You may define additional repositories, or even remove "mavenCentral()".
+ // Read more about repositories here:
+ // http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:repositories
}
dependencies {

0 comments on commit 9850220

Please sign in to comment.