forked from airbnb/aerosolve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·84 lines (72 loc) · 1.89 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apply plugin: 'wrapper'
// Needed for shadow.
buildscript {
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'gradle.plugin.com.palantir.gradle.gitversion:gradle-git-version:0.5.2'
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.palantir.git-version'
repositories {
jcenter()
maven { url "http://repo.typesafe.com/typesafe/releases/" }
maven { url 'http://projectlombok.org/mavenrepo' }
}
configurations {
provided
}
group = 'com.airbnb.aerosolve'
version gitVersion()
ext.publish = true
ext.dryRun = false
sourceSets {
main {
compileClasspath += configurations.provided
}
test {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
}
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
options.setDeprecation true
options.encoding = 'UTF-8'
}
}
subprojects {
apply plugin: 'maven'
if (project.plugins.hasPlugin('java')) {
// manifest.mainAttributes(provider: 'gradle')
configurations {
published
}
dependencies {
testCompile 'junit:junit:4.7'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// Add the sourceJars to non-extractor modules
artifacts {
published sourceJar
published javadocJar
}
}
}