forked from polypheny/Polypheny-DB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (67 loc) · 2.41 KB
/
build.gradle
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
// licensee
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
google()
}
dependencies {
classpath group: "app.cash.licensee", name: "licensee-gradle-plugin", version: licensee_version
classpath group: "com.jaredsburrows", name: "gradle-license-plugin", version: license_report_version
}
}
subprojects {
// licensee
apply plugin: "app.cash.licensee"
apply plugin: "com.jaredsburrows.license"
dependencies {
testImplementation project(path: ":core", configuration: "tests")
}
// jar
jar {
manifest {
attributes 'Plugin-Class': "${pluginClass}",
'Plugin-Id': "${pluginId}",
'Plugin-Version': "${pluginVersion}",
'Plugin-Provider': "${pluginProvider}",
'Plugin-Dependencies': "${pluginDependencies}",
'Plugin-Url-Path': "${pluginUrlPath}",
'Plugin-Categories': "${pluginCategories}",
'Plugin-Polypheny-Dependencies': "${pluginPolyDependencies}",
'Plugin-System-Component': "${pluginIsSystemComponent}",
'Plugin-Ui-Visible': "${pluginIsUiVisible}"
}
}
task plugin(type: Jar) {
manifest {
attributes 'Plugin-Class': "${pluginClass}",
'Plugin-Id': "${pluginId}",
'Plugin-Version': "${pluginVersion}",
'Plugin-Provider': "${pluginProvider}",
'Plugin-Dependencies': "${pluginDependencies}",
'Plugin-Url-Path': "${pluginUrlPath}",
'Plugin-Categories': "${pluginCategories}",
'Plugin-Polypheny-Dependencies': "${pluginPolyDependencies}",
'Plugin-System-Component': "${pluginIsSystemComponent}",
'Plugin-Ui-Visible': "${pluginIsUiVisible}"
}
archiveBaseName = "plugin-${pluginId}"
into('classes') {
with jar
}
into('lib') {
from configurations.runtimeClasspath
}
extension('zip')
}
task assemblePlugin(type: Copy) {
from plugin
into pluginsDir
}
}
tasks.register('assemblePlugins') {
dependsOn subprojects.assemblePlugin
}
build.dependsOn project.tasks.assemblePlugins
assemble.dependsOn project.tasks.assemblePlugins