forked from functionaljava/functionaljava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
110 lines (84 loc) · 2.47 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
defaultTasks 'build'
ext {
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
allprojects {
ext {
isSnapshot = true
fjBaseVersion = "4.2-beta-2"
snapshotAppendix = "-SNAPSHOT"
fjVersion = fjBaseVersion + (isSnapshot ? snapshotAppendix : "")
fjConsumeVersion = "4.1"
signModule = false
projectTitle = "Functional Java"
projectName = "functionaljava"
pomProjectName = projectTitle
pomOrganisation = projectTitle
projectDescription = "Functional Java is an open source library that supports closures for the Java programming language"
projectUrl = "http://functionaljava.org/"
scmUrl = "git://github.com/functionaljava/functionaljava.git"
scmGitFile = "scm:git@github.com:functionaljava/functionaljava.git"
sonatypeBaseUrl = "https://oss.sonatype.org"
sonatypeSnapshotUrl = "$sonatypeBaseUrl/content/repositories/snapshots/"
sonatypeRepositoryUrl = "$sonatypeBaseUrl/content/groups/public"
sonatypeReleaseUrl = "$sonatypeBaseUrl/service/local/staging/deploy/maven2/"
sonatypeUploadUrl = isSnapshot ? sonatypeSnapshotUrl : sonatypeReleaseUrl
primaryEmail = "functionaljava@googlegroups.com"
dependencyJunit = "junit:junit:4.11"
}
version = fjVersion
group = "org.functionaljava"
}
subprojects {
defaultTasks "build"
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'me.tatarka:gradle-retrolambda:1.3.1'
}
}
repositories {
mavenCentral()
maven {
url sonatypeRepositoryUrl
}
}
apply from: "$rootDir/lib.gradle"
apply plugin: "maven"
apply plugin: "java"
apply plugin: "signing"
sourceCompatibility = "1.8"
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
}
jar {
version project.fjVersion
manifest {
attributes 'Signature-Version': project.fjVersion
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
task env << {
println System.getenv()
}