-
-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathProcessingLibraryExtension.kt
More file actions
64 lines (53 loc) · 1.5 KB
/
ProcessingLibraryExtension.kt
File metadata and controls
64 lines (53 loc) · 1.5 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
import org.gradle.api.Action
import org.gradle.api.model.ObjectFactory
import java.io.Serializable
import javax.inject.Inject
open class ProcessingLibraryExtension @Inject constructor(objects: ObjectFactory) {
var version: String? = null
val library = objects.newInstance(ProcessingLibraryConfiguration::class.java)
fun library(action: Action<ProcessingLibraryConfiguration>) {
action.execute(library)
}
}
open class ProcessingLibraryConfiguration @Inject constructor() : Serializable {
/**
* Name of the library. If not set, the project name will be used.
*/
var name: String? = null
/**
* Version number of the library.
*/
var version: Int? = null
/**
* Pretty version string of the library.
*/
var prettyVersion: String? = null
/**
* Map of author URLs to author names.
*/
var authors: Map<String, String> = emptyMap()
/**
* URL of the library where more information can be found.
*/
var url: String? = null
/**
* List of categories the library belongs to.
*/
var categories: List<String> = emptyList()
/**
* A one-line sentence describing the library.
*/
var sentence: String? = null
/**
* A longer paragraph describing the library.
*/
var paragraph: String? = null
/**
* Minimum Processing revision required.
*/
var minRevision: Int? = null
/**
* Maximum Processing revision supported.
*/
var maxRevision: Int? = null
}