-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge release into master #1828
Changes from 16 commits
4063a63
b793276
13a5495
0b6fcff
7923bdb
e69515d
cd87ff1
68af6d8
dc5530d
30187ff
ef31747
8a27403
b4f986d
a218512
20d157b
5cfd4a1
c6dcf32
da7f4ee
3867555
6f94218
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
//classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1' | ||
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:git@github.com:realm/realm-java.git' | ||
developerConnection 'scm:git@github.com:realm/realm-java.git' | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
jarLibrary(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-android' | ||
artifact file("${buildDir}/outputs/gradle/realm-android-${currentVersion}.jar") | ||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-sources.jar") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove out commented code There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm keeping those as a reminder to find a way to import them again. |
||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-javadoc.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-android') | ||
root.appendNode('description', 'Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
aarLibrary(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-android-library' | ||
artifact file("${rootDir}/realm/realm-library/build/outputs/aar/realm-library-release.aar") | ||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-sources.jar") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-javadoc.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-android-library') | ||
root.appendNode('description', 'Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
annotations(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-annotations' | ||
artifact file("${rootDir}/realm/realm-annotations/build/libs/realm-annotations-${currentVersion}.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-annotations') | ||
root.appendNode('description', 'Annotations for Realm. Realm is a mobile database: a replacement for SQLite & ORMs') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
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') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
gradlePlugin(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-gradle-plugin' | ||
artifact file("${rootDir}/gradle-plugin/build/libs/gradle-plugin-${currentVersion}.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'gradle-realm-plugin') | ||
root.appendNode('description', 'Gradle plugin for Realm. Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = project.hasProperty('bintrayUser') ? bintrayUser : 'noUser' | ||
key = project.hasProperty('bintrayKey') ? bintrayKey : 'noKey' | ||
|
||
dryRun = false | ||
publish = false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to manually publish all of these? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the moment, yes. When automation kick in, not anymore. |
||
|
||
publications = ['aarLibrary'] | ||
pkg { | ||
repo = 'maven' | ||
name = 'realm-android-library' | ||
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 | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
//classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can it be removed? |
||
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:git@github.com:realm/realm-java.git' | ||
developerConnection 'scm:git@github.com:realm/realm-java.git' | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
jarLibrary(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-android' | ||
artifact file("${buildDir}/outputs/gradle/realm-android-${currentVersion}.jar") | ||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-sources.jar") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove? |
||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-javadoc.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-android') | ||
root.appendNode('description', 'Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
aarLibrary(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-android-library' | ||
artifact file("${rootDir}/realm/realm-library/build/outputs/aar/realm-library-release.aar") | ||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-sources.jar") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove? |
||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-javadoc.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-android-library') | ||
root.appendNode('description', 'Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
annotations(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-annotations' | ||
artifact file("${rootDir}/realm/realm-annotations/build/libs/realm-annotations-${currentVersion}.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-annotations') | ||
root.appendNode('description', 'Annotations for Realm. Realm is a mobile database: a replacement for SQLite & ORMs') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
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') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
gradlePlugin(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-gradle-plugin' | ||
artifact file("${rootDir}/gradle-plugin/build/libs/gradle-plugin-${currentVersion}.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'gradle-realm-plugin') | ||
root.appendNode('description', 'Gradle plugin for Realm. Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = project.hasProperty('bintrayUser') ? bintrayUser : 'noUser' | ||
key = project.hasProperty('bintrayKey') ? bintrayKey : 'noKey' | ||
|
||
dryRun = false | ||
publish = false | ||
|
||
publications = ['annotations'] | ||
pkg { | ||
repo = 'maven' | ||
name = 'realm-annotations' | ||
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 | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
//classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
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:git@github.com:realm/realm-java.git' | ||
developerConnection 'scm:git@github.com:realm/realm-java.git' | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
jarLibrary(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-android' | ||
artifact file("${buildDir}/outputs/gradle/realm-android-${currentVersion}.jar") | ||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-sources.jar") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-javadoc.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-android') | ||
root.appendNode('description', 'Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
aarLibrary(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-android-library' | ||
artifact file("${rootDir}/realm/realm-library/build/outputs/aar/realm-library-release.aar") | ||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-sources.jar") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
//artifact file("${rootDir}/realm/realm-library/build/libs/realm-android-${currentVersion}-javadoc.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-android-library') | ||
root.appendNode('description', 'Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
annotations(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-annotations' | ||
artifact file("${rootDir}/realm/realm-annotations/build/libs/realm-annotations-${currentVersion}.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'realm-annotations') | ||
root.appendNode('description', 'Annotations for Realm. Realm is a mobile database: a replacement for SQLite & ORMs') | ||
root.appendNode('url', 'http://realm.io') | ||
root.children().last() + commonPom | ||
} | ||
} | ||
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 | ||
} | ||
} | ||
gradlePlugin(MavenPublication) { | ||
groupId 'io.realm' | ||
artifactId = 'realm-gradle-plugin' | ||
artifact file("${rootDir}/gradle-plugin/build/libs/gradle-plugin-${currentVersion}.jar") | ||
pom.withXml { | ||
Node root = asNode() | ||
root.appendNode('name', 'gradle-realm-plugin') | ||
root.appendNode('description', 'Gradle plugin for Realm. Realm is a mobile database: a replacement for SQLite & ORMs.') | ||
root.appendNode('url', 'http://realm.io') | ||
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 | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line?