build.gradle 1.43 KB
Newer Older
Mauricio Colli's avatar
Mauricio Colli committed
1
allprojects {
2
    apply plugin: 'java-library'
3
4
    apply plugin: 'maven'

5
6
    sourceCompatibility = 1.8
    targetCompatibility = 1.8
Mauricio Colli's avatar
Mauricio Colli committed
7

TobiGr's avatar
TobiGr committed
8
    version 'v0.20.3'
9
    group 'com.github.TeamNewPipe'
wb9688's avatar
wb9688 committed
10

11
12
    repositories {
        jcenter()
wb9688's avatar
wb9688 committed
13
        maven { url "https://jitpack.io" }
14
    }
wb9688's avatar
wb9688 committed
15
16
}

17
dependencies {
yausername's avatar
yausername committed
18
    api project(':extractor')
19
20
21
    implementation project(':timeago-parser')
}

22
23
24
25
26
subprojects {
    task sourcesJar(type: Jar, dependsOn: classes) {
        classifier = 'sources'
        from sourceSets.main.allSource
    }
Mauricio Colli's avatar
Mauricio Colli committed
27

28
29
30
31
32
33
34
    tasks.withType(Test) {
        testLogging {
            events "skipped", "failed"
            showStandardStreams = true
            exceptionFormat = 'full'
        }
    }
Coffeemakr's avatar
Coffeemakr committed
35

36
37
    artifacts {
        archives sourcesJar
Coffeemakr's avatar
Coffeemakr committed
38
    }
39
40
}

41
42
43
44
45
46
// https://discuss.gradle.org/t/best-approach-gradle-multi-module-project-generate-just-one-global-javadoc/18657/21
task aggregatedJavadocs(type: Javadoc, group: 'Documentation') {
    destinationDir = file("$buildDir/docs/javadoc")
    title = "$project.name $version"
    // options.memberLevel = JavadocMemberLevel.PRIVATE
    options.links 'https://docs.oracle.com/javase/7/docs/api/'
47
48
    options.encoding 'UTF-8'

49
50
51
52
53
54
55
56
57
    subprojects.each { project ->
        project.tasks.withType(Javadoc).each { javadocTask ->
            source += javadocTask.source
            classpath += javadocTask.classpath
            excludes += javadocTask.excludes
            includes += javadocTask.includes
        }
    }
}