Skip to content
Newer
Older
100644 79 lines (61 sloc) 2.47 KB
c146b4d @anagrius Initial commit.
anagrius authored Feb 23, 2011
1 //////////////////////////////////////////////////////////////////////////////
2 // This file is the base build-script for the project. There are additional
3 // config files in the 'config'-directory, that handle different aspects of
4 // the build and deployment for the project.
5 //////////////////////////////////////////////////////////////////////////////
6
7 apply plugin: 'java-base'
8
9 // Please make sure you read the README.md file before you try to understand
10 // what is going on.
11
12 allprojects {
13 // You can use 'gradle eclipse' to generate eclipse project files.
14 // You can use 'gradle -t' to see a list of availible tasks.
15 apply plugin: 'eclipse'
16
17 defaultTasks 'build'
18
19 // Usually you will want to add proxy repositories to nexus instead on
20 // adding explicitly here.
21 repositories {
22 mavenLocal()
23 mavenRepo name: 'trifork-releases', urls: 'http://nexus.ci81.trifork.com/content/groups/public/'
24 mavenRepo name: 'trifork-snapshots', urls: 'http://nexus.ci81.trifork.com/content/groups/public-snapshots/'
25 }
26 }
27
28 subprojects { subproject ->
29
30 // Subproject currently always default to java. This might change in the future.
31 // If you are making WARs take a look at the 'war' plugin.
32 apply plugin: 'java'
33 apply plugin: 'deployment'
34
35 targetCompatibility = '1.6'
36 sourceCompatibility = '1.6'
37
38 // Include references to common dependencies so you can keep
39 // versions consistent accross your sub-projects.
40
41 apply from: 'config/libraries.groovy'
42
43 // Checkstyle source coding standards.
44 // TODO: These setting are a bit verbose, but
45 // the implementation seems to be a bit broken (in Gradle 0.9.2).
46 apply plugin: 'code-quality'
47 checkstyleConfigDir = "$rootDir/config/checkstyle"
48 checkstyleConfigFileName = new File(checkstyleConfigDir, "checkstyle.xml")
49 checkstyleProperties.checkstyleConfigDir = checkstyleConfigDir
50
51 // Shared dependencies for all subprojects.
52 // Logging is a common shared dependency.
53 dependencies {
54 testCompile libraries.testng
55 }
56
57 // Add some extra memory for testing, this is usually useful.
58 test {
59 maxHeapSize = "1024m"
60 }
61 }
62
63 dependsOnChildren()
64
65 // The following is section is adds the plugins from
66 // https://github.com/trifork/gradle-plugins.
67
68 buildscript {
69 repositories {
70 mavenLocal()
71 mavenRepo name: 'trifork-releases', urls: 'http://nexus.ci81.trifork.com/content/groups/public/'
72 mavenRepo name: 'trifork-snapshots', urls: 'http://nexus.ci81.trifork.com/content/groups/public-snapshots/'
73
74 }
75 dependencies {
76 classpath 'com.trifork:gradle-plugins:0.1.0'
77 }
78 }
Something went wrong with that request. Please try again.