@@ -13,6 +13,12 @@ plugins {
13
13
group = ' com.redislabs'
14
14
description = ' Spring RediSearch'
15
15
sourceCompatibility = ' 1.8'
16
+ targetCompatibility = ' 1.8'
17
+
18
+ java {
19
+ withJavadocJar()
20
+ withSourcesJar()
21
+ }
16
22
17
23
repositories {
18
24
jcenter()
@@ -34,82 +40,83 @@ test {
34
40
useJUnitPlatform()
35
41
}
36
42
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
+ }
57
52
}
58
53
}
59
54
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
72
57
}
73
58
74
59
publishing {
75
60
publications {
76
61
mavenJava(MavenPublication ) {
77
62
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
+ }
83
71
pom {
84
72
name = ' Spring RediSearch'
85
- packaging = ' jar'
86
- description = ' Spring-enabled client for RediSearch based on LettuSearch'
73
+ description = ' Spring configuration for LettuSearch'
87
74
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
-
95
75
licenses {
96
76
license {
97
77
name = ' The Apache License, Version 2.0'
98
78
url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
99
79
}
100
80
}
101
-
102
81
developers {
103
82
developer {
104
83
id = ' jruaux'
105
84
name = ' Julien Ruaux'
106
85
}
107
86
}
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
+ }
108
92
}
109
93
}
110
94
}
111
95
}
112
96
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
+
113
120
githubRelease {
114
121
token = project. hasProperty(' githubToken' ) ? project. property(' githubToken' ) : ' '
115
122
owner " RediSearch"
0 commit comments