Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'java'
- //
- // more plugins if any
- //
- configurations {
- //..
- //if any
- //..
- }
- // Define sourceSets to tell Gradle where is actual main code, test code, etc code.
- // This is NOT required, if your source code folder structure follows Gradle standard folder structure
- sourceSets {
- main {
- java {
- srcDir 'src/java'
- }
- }
- test {
- java {
- srcDir 'test/java'
- }
- resources {
- srcDir 'test/resources'
- srcDir 'conf'
- }
- }
- integrationTest {
- java {
- srcDir 'src/java-test'
- }
- }
- }
- // Define dependencies
- dependencies {
- // Compilation
- compile "org.groupd.id:someartifactid1:1.0.0"
- compile "org.groupd.id:someartifactid2:1.0.0@zip"
- compile group: "org.groupd.id", artifact: "someartifactid3", version: '0.0.1'
- compile srcDir "libs/thirdparty"
- compile srcDir "libs/thirdparty2/*.jar"
- // Unit Tests
- testCompile
- // etc
- // etc
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement