forked from ticketmaster-api/sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (54 loc) · 1.45 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
//Check for the latest version here: http://plugins.gradle.org/plugin/com.jfrog.artifactory
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.0.3"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath "com.netflix.nebula:gradle-extra-configurations-plugin:3.0.3"
}
}
subprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'nebula.optional-base'
apply plugin: 'nebula.provided-base'
targetCompatibility = "1.7"
sourceCompatibility = "1.7"
repositories {
mavenCentral()
jcenter()
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
}
project(':discovery-java') {
dependencies {
compile project(':discovery-model-java')
}
}
// Adding a Help task to debug the artifacts
task artifacts {
group = "Help"
description = "Displays the artifacts associated with each configuration of " + project
doFirst {
configurations.findAll().each { config ->
println "${config}:"
config.allArtifacts.getFiles().each { file -> println "" + file}
println ' '
}
}
}