initialize repo
[frc-3501-start] / build.gradle
1 /* see bottom of file for copyright information */
2
3 /*
4 this file created with help from documentation at:
5 https://docs.gradle.org/current/userguide/tutorial_java_projects.html
6 */
7
8 /*
9 declare this project as a basic java project
10 this line enables:
11 gradle build
12 */
13 apply plugin: 'java'
14
15 /* gradle should search maven to download external dependencies */
16 repositories {
17 mavenCentral()
18 }
19
20 /*
21 declare requirement for commons collections at compile time
22 declare requirement for junit for testing,
23 */
24 dependencies {
25 compile group: 'commons-collections',
26 name: 'commons-collections', version: '3.2'
27 testCompile group: 'junit', name: 'junit', version: '4.+'
28 }
29
30 /* version of java this project is written in */
31 sourceCompatibility = 1.5
32 /* version number for this project */
33 version = '1.0'
34 /* add some attributes to the JAR manifest */
35 jar {
36 manifest {
37 attributes 'Implementation-Title': 'Gradle Quickstart',
38 'Implementation-Version': version
39 }
40 }
41
42 /* demonstrate changing a property on the test task */
43 test {
44 systemProperties 'property': 'value'
45 }
46
47 /* tell gradle where to publish the jar file */
48 uploadArchives {
49 repositories {
50 flatDir {
51 /* publish to a local directory */
52 dirs 'repos'
53 /*
54 now you can run:
55 gradle uploadArchives
56 */
57 }
58 }
59 }
60
61 /* create eclipse specific descriptor files, like project */
62 apply plugin: 'eclipse'
63 /* now you can execute gradle eclipse */
64
65 /*
66 gradle-java-basic is free software: you can redistribute it and/or modify
67 it under the terms of the GNU Affero General Public License as published
68 by the Free Software Foundation, either version 3 of the License, or
69 (at your option) any later version.
70
71 gradle-java-basic is distributed in the hope that it will be useful,
72 but WITHOUT ANY WARRANTY; without even the implied warranty of
73 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
74 GNU Affero General Public License for more details.
75
76 You should have received a copy of the GNU Affero General Public License
77 along with gradle-java-basic. If not, see <http://www.gnu.org/licenses/>.
78 */