forked from EngineHub/Intake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
86 lines (71 loc) · 1.91 KB
/
build.gradle
File metadata and controls
86 lines (71 loc) · 1.91 KB
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
buildscript {
repositories {
jcenter()
}
configurations.all {
resolutionStrategy {
force 'com.google.guava:guava:18.0'
}
}
dependencies {
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1'
}
}
//build variables
if (!project.hasProperty("webdav_url")){
ext.webdav_url = "http://localhost"
}
if (!project.hasProperty("webdav_user")){
ext.webdav_user = "guest"
}
if (!project.hasProperty("webdav_password")){
ext.webdav_password = ""
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'checkstyle'
group = 'io.github.mywarp.intake'
version = '4.2-SNAPSHOT'
checkstyle.configFile = new File(rootProject.projectDir, "config/checkstyle/checkstyle.xml")
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
jcenter()
maven { url "http://maven.sk89q.com/repo/" }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
build.dependsOn(checkstyleMain)
build.dependsOn(checkstyleTest)
build.dependsOn(sourcesJar)
build.dependsOn(javadocJar)
configurations {
deployerJars
}
dependencies {
// to use WebDav protocol on upload
deployerJars 'org.apache.maven.wagon:wagon-webdav:1.0-beta-2'
}
uploadArchives {
repositories {
mavenDeployer {
configuration = configurations.deployerJars
repository(url: "dav:" + webdav_url) {
authentication(userName: webdav_user, password: webdav_password)
}
}
}
}
}