/* see bottom of file for copyright information */ /* this file created with help from documentation at: https://docs.gradle.org/current/userguide/tutorial_java_projects.html */ /* declare this project as a basic java project this line enables: gradle build */ apply plugin: 'java' /* gradle should search maven to download external dependencies */ repositories { mavenCentral() } /* declare requirement for commons collections at compile time declare requirement for junit for testing, */ dependencies { compile group: 'commons-collections', name: 'commons-collections', version: '3.2' testCompile group: 'junit', name: 'junit', version: '4.+' } /* version of java this project is written in */ sourceCompatibility = 1.5 /* version number for this project */ version = '1.0' /* add some attributes to the JAR manifest */ jar { manifest { attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version } } /* demonstrate changing a property on the test task */ test { systemProperties 'property': 'value' } /* tell gradle where to publish the jar file */ uploadArchives { repositories { flatDir { /* publish to a local directory */ dirs 'repos' /* now you can run: gradle uploadArchives */ } } } /* create eclipse specific descriptor files, like project */ apply plugin: 'eclipse' /* now you can execute gradle eclipse */ /* gradle-java-basic is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. gradle-java-basic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with gradle-java-basic. If not, see . */