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

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

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

11
12
13
    repositories {
        jcenter()
    }
wb9688's avatar
wb9688 committed
14
15
}

16
17
18
19
20
dependencies {
    implementation project(':extractor')
    implementation project(':timeago-parser')
}

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

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

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

40
41
42
43
44
45
// 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/'
46
47
    options.encoding 'UTF-8'

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