-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
137 lines (113 loc) · 5.84 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import java.text.SimpleDateFormat
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.standardout:bnd-platform:1.7.0'
}
}
plugins {
id 'java'
id 'nebula.release' version '13.0.0'
}
apply plugin: 'org.standardout.bnd-platform'
apply plugin: 'p2-plugin'
group 'org.contextmapper'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation "org.freemarker:freemarker:${freemarkerVersion}"
implementation "io.swagger.core.v3:swagger-core:${swaggerCoreVersion}"
implementation "io.swagger.parser.v3:swagger-parser:${swaggerParserVersion}"
implementation "com.sun.activation:jakarta.activation:${jakartaAPIVersion}"
implementation "io.github.microservice-api-patterns:protobufgen:${protoSerializerVersion}"
}
configurations.all {
exclude group:"com.google.code.findbugs", module: "jsr305"
exclude group:"org.slf4j"
}
defaultTasks 'updateSiteZip'
updateSiteZip.dependsOn clean
build.finalizedBy(updateSiteZip)
platform {
feature(id: 'contextmapper.freemarker', name: 'Freemarker Templating Engine', version: freemarkerVersion) {
plugin "org.freemarker:freemarker:${freemarkerVersion}"
}
feature(id: 'contextmapper.swagger.core', name: 'Swagger Core', version: swaggerCoreVersion) {
plugin "io.swagger.core.v3:swagger-core:${swaggerCoreVersion}", {
exclude group: 'org.slf4j'
}
plugin "com.sun.activation:jakarta.activation:${jakartaAPIVersion}"
}
feature(id: 'contextmapper.swagger.parser', name: 'Swagger Parser', version: swaggerParserVersion) {
plugin "io.swagger.parser.v3:swagger-parser:${swaggerParserVersion}", {
exclude group: 'org.slf4j'
}
plugin "com.github.fge:jackson-coreutils:1.8", {
bnd {
instruction 'Import-Package', "!javax.annotation,!com.google.common.io,!com.google.common.collect,!com.google.common.base,com.google.common.io;version=\"[16.0,28)\",com.google.common.collect;version=\"[16.0,28)\",com.google.common.base;version=\"[16.0,28)\",*"
}
}
plugin "com.github.fge:json-patch:1.6", {
bnd {
instruction 'Import-Package', "!com.google.common.collect,!com.google.common.base,com.google.common.collect;version=\"[16.0,28)\",com.google.common.base;version=\"[16.0,28)\",*"
}
}
plugin "com.github.fge:uri-template:0.9", {
bnd {
instruction 'Import-Package', "!com.google.common.base,!com.google.common.collect,!com.google.common.escape,!com.google.common.net,com.google.common.base;version=\"[16.0,28)\",com.google.common.collect;version=\"[16.0,28)\",com.google.common.escape;version=\"[16.0,28)\",com.google.common.net;version=\"[16.0,28)\",*"
}
}
plugin "com.github.java-json-tools:json-schema-core:1.2.8", {
bnd {
instruction 'Import-Package', "!javax.annotation,!com.google.common.base,!com.google.common.cache,!com.google.common.collect,!com.google.common.io,!com.google.common.net,!com.google.common.primitives,com.google.common.base;version=\"[16.0,28)\",com.google.common.cache;version=\"[16.0,28)\",com.google.common.collect;version=\"[16.0,28)\",com.google.common.io;version=\"[16.0,28)\",com.google.common.net;version=\"[16.0,28)\",com.google.common.primitives;version=\"[16.0,28)\",*"
}
}
plugin "com.github.java-json-tools:json-schema-validator:2.2.8", {
bnd {
instruction 'Import-Package', "!javax.annotation,!com.google.common.base,!com.google.common.collect,!com.google.common.net,com.google.common.base;version=\"[16.0,28)\",com.google.common.collect;version=\"[16.0,28)\",com.google.common.net;version=\"[16.0,28)\",*"
}
}
plugin "com.google.guava:guava:27.0.1-android", {
bnd {
instruction 'Import-Package', "com.google.common.util.concurrent.internal;version=\"[1.0,2)\""
}
}
plugin "com.github.fge:msg-simple:1.1", {
bnd {
instruction 'Import-Package', "!javax.annotation,*"
}
}
plugin "io.swagger:swagger-compat-spec-parser:1.0.51", {
bnd {
instruction 'Import-Package', "!javax.annotation,*"
}
}
}
feature(id: 'contextmapper.protobufgen', name: 'Protocol Buffer Generator Library', version: protoSerializerVersion) {
plugin "io.github.microservice-api-patterns:protobufgen:${protoSerializerVersion}"
}
featureId 'org.contextmapper.bundles.feature.aggregation'
featureName 'All Bundles (Aggregation)'
featureVersion project.version.toString().endsWith('SNAPSHOT') ? project.version.toString().replace("SNAPSHOT", "") + new SimpleDateFormat("YYYYMMddHHmmss").format(new Date()) : project.version.toString()
featureProvider 'Context Mapper'
categoryName 'Context Mapper OSGi Bundles'
eclipseMirror 'https://ftp.fau.de/eclipse/technology/epp/downloads/release/2020-03/R/eclipse-java-2020-03-R-linux-gtk-x86_64.tar.gz'
downloadsDir new File(buildDir, 'eclipse')
useBndHashQualifiers false
useFeatureHashQualifiers false
defaultQualifier new SimpleDateFormat("YYYYMMddHHmmss").format(new Date())
}
publishP2Repo {
repoOwner = 'contextmapper'
repoName = project.version.toString().endsWith('SNAPSHOT') ? 'context-mapper-osgi-bundle-snapshots' : 'context-mapper-osgi-bundles'
compositePackage = ''
subCompositeStrategy = 'MICRO'
apiUrl = 'https://contextmapper.jfrog.io'
apiKey = System.getenv('ARTIFACTORY_API_KEY')
user = System.getenv('ARTIFACTORY_USERNAME')
packageVersion = project.version.toString().endsWith('SNAPSHOT') ? project.version.toString().replace("-SNAPSHOT", ".") + new SimpleDateFormat("YYYYMMddHHmmss").format(new Date()) : project.version.toString()
}