forked from realm/realm-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bintrayAnnotationsProcessor.gradle
78 lines (70 loc) · 2.52 KB
/
bintrayAnnotationsProcessor.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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
}
}
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
def currentVersion = file("${projectDir}/version.txt").text.trim();
version = currentVersion
def commonPom = {
version = currentVersion
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
issueManagement {
system 'github'
url 'https://github.com/realm/realm-java/issues'
}
scm {
url 'scm:https://github.com/realm/realm-java'
connection 'scm:[email protected]:realm/realm-java.git'
developerConnection 'scm:[email protected]:realm/realm-java.git'
}
}
publishing {
publications {
annotationsProcessor(MavenPublication) {
groupId 'io.realm'
artifactId = 'realm-annotations-processor'
artifact file("${rootDir}/realm/realm-annotations-processor/build/libs/realm-annotations-processor-${currentVersion}.jar")
pom.withXml {
Node root = asNode()
root.appendNode('name', 'realm-annotations-processor')
root.appendNode('description', 'Annotation Processor for Realm. Realm is a mobile database: a replacement for SQLite & ORMs')
root.appendNode('url', 'http://realm.io')
def dependenciesNode = root.appendNode('dependencies')
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', 'com.squareup')
dependencyNode.appendNode('artifactId', 'javawriter')
dependencyNode.appendNode('version', '2.5.0')
root.children().last() + commonPom
}
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? bintrayUser : 'noUser'
key = project.hasProperty('bintrayKey') ? bintrayKey : 'noKey'
dryRun = false
publish = false
publications = ['annotationsProcessor']
pkg {
repo = 'maven'
name = 'realm-annotations-processor'
desc = 'Realm for Android'
websiteUrl = 'http://realm.io'
issueTrackerUrl = 'https://github.com/realm/realm-java/issues'
vcsUrl = 'https://github.com/realm/realm-java.git'
licenses = ['Apache-2.0']
labels = ['android', 'realm']
publicDownloadNumbers = false
}
}