Skip to content
This repository was archived by the owner on May 19, 2022. It is now read-only.

Commit 581a8fa

Browse files
committedOct 27, 2020
added github release plugin to build.gradle
1 parent e78b80b commit 581a8fa

File tree

5 files changed

+54
-265
lines changed

5 files changed

+54
-265
lines changed
 

‎.circleci.settings.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎.circleci/config.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

‎build.gradle

Lines changed: 54 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ plugins {
1313
group = 'com.redislabs'
1414
description = 'Spring RediSearch'
1515
sourceCompatibility = '1.8'
16+
targetCompatibility = '1.8'
17+
18+
java {
19+
withJavadocJar()
20+
withSourcesJar()
21+
}
1622

1723
repositories {
1824
jcenter()
@@ -34,82 +40,83 @@ test {
3440
useJUnitPlatform()
3541
}
3642

37-
bintray {
38-
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : ''
39-
key = project.hasProperty('bintrayKey') ? project.property('bintrayKey') : ''
40-
publications = ['mavenJava']
41-
publish = true
42-
pkg {
43-
repo = 'maven'
44-
name = 'spring-redisearch'
45-
licenses = ['Apache-2.0']
46-
vcsUrl = 'https://github.com/RediSearch/spring-redisearch.git'
47-
version {
48-
gpg {
49-
sign = true
50-
}
51-
mavenCentralSync {
52-
sync = true
53-
user = project.hasProperty('ossrhUsername') ? project.property('ossrhUsername') : ''
54-
password = project.hasProperty('ossrhPassword') ? project.property('ossrhPassword') : ''
55-
}
56-
}
43+
distributions {
44+
main {
45+
contents {
46+
from (project.docsDir) {
47+
into 'docs'
48+
}
49+
from 'README.md'
50+
from 'LICENSE'
51+
}
5752
}
5853
}
5954

60-
task sourcesJar(type: Jar) {
61-
archiveClassifier = 'sources'
62-
from sourceSets.main.allJava
63-
}
64-
65-
task javadocJar(type: Jar) {
66-
archiveClassifier = 'javadoc'
67-
from javadoc.destinationDir
68-
}
69-
70-
artifacts {
71-
archives sourcesJar, javadocJar
55+
distTar {
56+
compression = Compression.GZIP
7257
}
7358

7459
publishing {
7560
publications {
7661
mavenJava(MavenPublication) {
7762
from components.java
78-
artifact sourcesJar
79-
artifact javadocJar
80-
groupId 'com.redislabs'
81-
artifactId 'spring-redisearch'
82-
63+
versionMapping {
64+
usage('java-api') {
65+
fromResolutionOf('runtimeClasspath')
66+
}
67+
usage('java-runtime') {
68+
fromResolutionResult()
69+
}
70+
}
8371
pom {
8472
name = 'Spring RediSearch'
85-
packaging = 'jar'
86-
description = 'Spring-enabled client for RediSearch based on LettuSearch'
73+
description = 'Spring configuration for LettuSearch'
8774
url = 'https://github.com/RediSearch/spring-redisearch'
88-
89-
scm {
90-
connection = 'scm:git:git://github.com/RediSearch/spring-redisearch.git'
91-
developerConnection = 'scm:git:git@github.com:RediSearch/spring-redisearch.git'
92-
url = 'https://github.com/RediSearch/spring-redisearch'
93-
}
94-
9575
licenses {
9676
license {
9777
name = 'The Apache License, Version 2.0'
9878
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
9979
}
10080
}
101-
10281
developers {
10382
developer {
10483
id = 'jruaux'
10584
name = 'Julien Ruaux'
10685
}
10786
}
87+
scm {
88+
connection = 'scm:git:git://github.com/RediSearch/spring-redisearch.git'
89+
developerConnection = 'scm:git:git@github.com:RediSearch/spring-redisearch.git'
90+
url = 'https://github.com/RediSearch/spring-redisearch'
91+
}
10892
}
10993
}
11094
}
11195
}
11296

97+
bintray {
98+
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : ''
99+
key = project.hasProperty('bintrayKey') ? project.property('bintrayKey') : ''
100+
publications = ['mavenJava']
101+
publish = true
102+
pkg {
103+
repo = 'maven'
104+
name = project.name
105+
licenses = ['Apache-2.0']
106+
vcsUrl = 'https://github.com/RediSearch/spring-redisearch.git'
107+
version {
108+
gpg {
109+
sign = true
110+
}
111+
mavenCentralSync {
112+
sync = true
113+
user = project.hasProperty('ossrhUsername') ? project.property('ossrhUsername') : ''
114+
password = project.hasProperty('ossrhPassword') ? project.property('ossrhPassword') : ''
115+
}
116+
}
117+
}
118+
}
119+
113120
githubRelease {
114121
token = project.hasProperty('githubToken') ? project.property('githubToken') : ''
115122
owner "RediSearch"

‎pom.xml

Lines changed: 0 additions & 157 deletions
This file was deleted.

‎settings.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
/*
2-
* This file was generated by the Gradle 'init' task.
3-
*/
4-
51
rootProject.name = 'spring-redisearch'

0 commit comments

Comments
 (0)
This repository has been archived.