This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.gradle
61 lines (53 loc) · 1.75 KB
/
common.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
allprojects { subproject ->
group = 'com.neva.osgi.toolkit'
version = '1.0.0'
repositories {
mavenLocal()
jcenter()
}
afterEvaluate {
plugins.withId 'org.jetbrains.kotlin.jvm', {
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
plugins.withId 'java', {
jar {
manifest {
attributes([
'Implementation-Title' : project.description,
'Implementation-Version': project.version
])
}
}
}
plugins.withId 'com.jfrog.bintray', {
bintray {
user = project.properties.get('bintrayUser') ?: System.getenv('BINTRAY_USER')
key = project.properties.get('bintrayKey') ?: System.getenv('BINTRAY_KEY')
publications = ['mavenJava']
pkg {
repo = 'maven-public'
name = "osgi-toolkit-${subproject.name}"
userOrg = 'neva-dev'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/neva-dev/gradle-osgi-toolkit.git'
labels = ['osgi', 'toolkit', 'felix', 'bundle']
version {
name = project.version
desc = "${project.description} ${project.version}"
vcsTag = project.version
}
}
publish = true
}
}
}
}