forked from greenrobot/EventBus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (52 loc) · 1.47 KB
/
Copy pathbuild.gradle
File metadata and controls
64 lines (52 loc) · 1.47 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
apply plugin: 'java'
archivesBaseName = 'eventbus-annotation-processor'
group = 'org.greenrobot'
version = '3.2.0'
sourceCompatibility = 1.7
dependencies {
implementation project(':eventbus')
implementation 'de.greenrobot:java-common:2.3.1'
// Generates the required META-INF descriptor to make the processor incremental.
def incap = '0.2'
compileOnly "net.ltgt.gradle.incap:incap:$incap"
annotationProcessor "net.ltgt.gradle.incap:incap-processor:$incap"
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'res'
}
}
}
apply from: rootProject.file("gradle/publish.gradle")
javadoc {
title = "EventBus Annotation Processor ${version} API"
options.bottom = 'Available under the Apache License, Version 2.0 - <i>Copyright © 2015-2020 <a href="https://greenrobot.org">greenrobot.org</a>. All Rights Reserved.</i>'
}
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
}
uploadArchives {
repositories {
mavenDeployer {
// Common setup is defined in publish.gradle.
pom.project {
name 'EventBus Annotation Processor'
description 'Precompiler for EventBus Annotations.'
}
}
}
}