8
8
}
9
9
sourceCompatibility = JavaVersion . VERSION_17
10
10
targetCompatibility = JavaVersion . VERSION_17
11
- withJavadocJar()
12
- withSourcesJar()
11
+
12
+ // Only generate javadoc and sources JARs for non-demo modules
13
+ if (! project. path. startsWith(' :demos:' )) {
14
+ withJavadocJar()
15
+ withSourcesJar()
16
+ }
13
17
}
14
18
15
19
test {
@@ -36,58 +40,61 @@ dependencies {
36
40
testImplementation " com.redis:testcontainers-redis:${ testcontainersRedisVersion} "
37
41
}
38
42
39
- publishing {
40
- publications {
41
- mavenJava(MavenPublication ) {
42
- from components. java
43
- groupId = project. group
44
- artifactId = project. name
45
- version = project. version
46
- description = project. description
43
+ // Only configure publishing for non-demo modules
44
+ if (! project. path. startsWith(' :demos:' )) {
45
+ publishing {
46
+ publications {
47
+ mavenJava(MavenPublication ) {
48
+ from components. java
49
+ groupId = project. group
50
+ artifactId = project. name
51
+ version = project. version
52
+ description = project. description
47
53
48
- versionMapping {
49
- usage(' java-api' ) {
50
- fromResolutionOf(' runtimeClasspath' )
51
- }
52
- usage(' java-runtime' ) {
53
- fromResolutionResult()
54
+ versionMapping {
55
+ usage(' java-api' ) {
56
+ fromResolutionOf(' runtimeClasspath' )
57
+ }
58
+ usage(' java-runtime' ) {
59
+ fromResolutionResult()
60
+ }
54
61
}
55
- }
56
62
57
- pom {
58
- packaging = ' jar'
59
- name = project. name
60
- description = project. description
61
- url = " https://github.com/redis/redis-om-spring"
62
- inceptionYear = ' 2021'
63
+ pom {
64
+ packaging = ' jar'
65
+ name = project. name
66
+ description = project. description
67
+ url = " https://github.com/redis/redis-om-spring"
68
+ inceptionYear = ' 2021'
63
69
64
- licenses {
65
- license {
66
- name = " MIT License"
67
- url = " https://opensource.org/licenses/MIT"
70
+ licenses {
71
+ license {
72
+ name = " MIT License"
73
+ url = " https://opensource.org/licenses/MIT"
74
+ }
68
75
}
69
- }
70
76
71
- developers {
72
- developer {
73
- id = " bsbodden"
74
- name = " Brian Sam-Bodden"
75
- email = " bsb at redis.com"
77
+ developers {
78
+ developer {
79
+ id = " bsbodden"
80
+ name = " Brian Sam-Bodden"
81
+ email = " bsb at redis.com"
82
+ }
76
83
}
77
- }
78
84
79
- scm {
80
- connection = " scm:git:git://github.com/redis/redis-om-spring.git"
81
- developerConnection = " scm:git:ssh://github.com/redis/redis-om-spring.git"
82
- url = " https://github.com/redis/redis-om-spring"
85
+ scm {
86
+ connection = " scm:git:git://github.com/redis/redis-om-spring.git"
87
+ developerConnection = " scm:git:ssh://github.com/redis/redis-om-spring.git"
88
+ url = " https://github.com/redis/redis-om-spring"
89
+ }
83
90
}
84
91
}
85
92
}
86
- }
87
93
88
- repositories {
89
- maven {
90
- url = rootProject. layout. buildDirectory. dir(' staging-deploy' )
94
+ repositories {
95
+ maven {
96
+ url = rootProject. layout. buildDirectory. dir(' staging-deploy' )
97
+ }
91
98
}
92
99
}
93
100
}
0 commit comments