Skip to content

Commit 2d4e74a

Browse files
committed
comment out modules older than 3.x, update circleci config
1 parent 13751c3 commit 2d4e74a

File tree

11 files changed

+59
-225
lines changed

11 files changed

+59
-225
lines changed

.circleci/config.yml

+25-218
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ version: 2.1
22
jobs:
33
build:
44
machine:
5-
image: ubuntu-2004:202201-02
5+
image: ubuntu-2204:2024.05.1
66

77
working_directory: ~/cassandra-ldap
88

99
environment:
1010
MAVEN_OPTS: -Xmx3200m
11-
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
11+
JAVA_HOME: /usr/lib/jvm/java-11-openjdk-amd64
1212

1313
steps:
1414

@@ -23,91 +23,19 @@ jobs:
2323
- ~/.m2
2424
key: m2-{{ checksum "pom.xml" }}
2525

26-
- run: sudo apt install openjdk-8-jdk
27-
- run: mvn --version && whereis java && mvn clean install -Dversion.cassandra22=2.2.19 -Dversion.cassandra30=3.0.28 -Dversion.cassandra311=3.11.14 -Dversion.cassandra4=4.0.7 -Dversion.cassandra41=4.1.0
26+
- run: sudo apt-get update && sudo apt install openjdk-11-jdk
27+
- run: mvn --version && whereis java && mvn clean install -Dversion.cassandra4=4.0.7 -Dversion.cassandra41=4.1.0 -Dversion.cassandra50=5.0.0
2828

2929
- persist_to_workspace:
3030
root: ~/cassandra-ldap
3131
paths:
32-
- "cassandra-2.2/target/cassandra-ldap-2.2**.jar"
33-
- "cassandra-3.0/target/cassandra-ldap-3.0*.jar"
34-
- "cassandra-3.11/target/cassandra-ldap-3.11*.jar"
3532
- "cassandra-4.0/target/cassandra-ldap-4.0*.jar"
3633
- "cassandra-4.1/target/cassandra-ldap-4.1*.jar"
34+
- "cassandra-5.0/target/cassandra-ldap-5.0*.jar"
3735

38-
build-2-2:
39-
machine:
40-
image: ubuntu-2004:202201-02
41-
42-
working_directory: ~/cassandra-ldap
43-
44-
environment:
45-
MAVEN_OPTS: -Xmx3200m
46-
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
47-
48-
steps:
49-
50-
- checkout
51-
52-
- restore_cache:
53-
keys:
54-
- m2-{{ checksum "pom.xml" }}
55-
- m2-
56-
57-
# Java 8 for Cassandra as image contains Java 11
58-
- run: sudo apt install openjdk-8-jdk
59-
- run: mvn clean install -DoutputDirectory=/tmp/artifacts -DskipTests
60-
61-
- save_cache:
62-
paths:
63-
- ~/.m2
64-
key: m2-{{ checksum "pom.xml" }}
65-
66-
- persist_to_workspace:
67-
root: /tmp/artifacts
68-
paths:
69-
- "cassandra-ldap-2.2*.jar"
70-
- "cassandra-ldap-2.2*.deb"
71-
- "cassandra-ldap-2.2*.rpm"
72-
73-
build-3-0:
74-
machine:
75-
image: ubuntu-2004:202201-02
76-
77-
working_directory: ~/cassandra-ldap
78-
79-
environment:
80-
MAVEN_OPTS: -Xmx3200m
81-
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64
82-
83-
steps:
84-
85-
- checkout
86-
87-
- restore_cache:
88-
keys:
89-
- m2-{{ checksum "pom.xml" }}
90-
- m2-
91-
92-
# Java 8 for Cassandra as image contains Java 11
93-
- run: sudo apt install openjdk-8-jdk
94-
- run: mvn clean install -DoutputDirectory=/tmp/artifacts
95-
96-
- save_cache:
97-
paths:
98-
- ~/.m2
99-
key: m2-{{ checksum "pom.xml" }}
100-
101-
- persist_to_workspace:
102-
root: /tmp/artifacts
103-
paths:
104-
- "cassandra-ldap-3.0*.jar"
105-
- "cassandra-ldap-3.0*.deb"
106-
- "cassandra-ldap-3.0*.rpm"
107-
108-
build-3-11:
36+
build-4-0:
10937
machine:
110-
image: ubuntu-2004:202201-02
38+
image: ubuntu-2204:2024.05.1
11139

11240
working_directory: ~/cassandra-ldap
11341

@@ -124,8 +52,7 @@ jobs:
12452
- m2-{{ checksum "pom.xml" }}
12553
- m2-
12654

127-
# Java 8 for Cassandra as image contains Java 11
128-
- run: sudo apt install openjdk-8-jdk
55+
- run: sudo apt-get update && sudo apt install openjdk-11-jdk
12956
- run: mvn clean install -DoutputDirectory=/tmp/artifacts
13057

13158
- save_cache:
@@ -136,13 +63,13 @@ jobs:
13663
- persist_to_workspace:
13764
root: /tmp/artifacts
13865
paths:
139-
- "cassandra-ldap-3.11*.jar"
140-
- "cassandra-ldap-3.11*.deb"
141-
- "cassandra-ldap-3.11*.rpm"
66+
- "cassandra-ldap-4.0*.jar"
67+
- "cassandra-ldap-4.0*.deb"
68+
- "cassandra-ldap-4.0*.rpm"
14269

143-
build-4-0:
70+
build-4-1:
14471
machine:
145-
image: ubuntu-2004:202201-02
72+
image: ubuntu-2204:2024.05.1
14673

14774
working_directory: ~/cassandra-ldap
14875

@@ -159,8 +86,7 @@ jobs:
15986
- m2-{{ checksum "pom.xml" }}
16087
- m2-
16188

162-
# Java 8 for Cassandra as image contains Java 11
163-
- run: sudo apt install openjdk-8-jdk
89+
- run: sudo apt-get update && sudo apt install openjdk-11-jdk
16490
- run: mvn clean install -DoutputDirectory=/tmp/artifacts
16591

16692
- save_cache:
@@ -171,13 +97,13 @@ jobs:
17197
- persist_to_workspace:
17298
root: /tmp/artifacts
17399
paths:
174-
- "cassandra-ldap-4.0*.jar"
175-
- "cassandra-ldap-4.0*.deb"
176-
- "cassandra-ldap-4.0*.rpm"
100+
- "cassandra-ldap-4.1*.jar"
101+
- "cassandra-ldap-4.1*.deb"
102+
- "cassandra-ldap-4.1*.rpm"
177103

178-
build-4-1:
104+
build-5-0:
179105
machine:
180-
image: ubuntu-2004:202201-02
106+
image: ubuntu-2204:2024.05.1
181107

182108
working_directory: ~/cassandra-ldap
183109

@@ -194,8 +120,7 @@ jobs:
194120
- m2-{{ checksum "pom.xml" }}
195121
- m2-
196122

197-
# Java 8 for Cassandra as image contains Java 11
198-
- run: sudo apt install openjdk-8-jdk
123+
- run: sudo apt-get update && sudo apt install openjdk-11-jdk
199124
- run: mvn clean install -DoutputDirectory=/tmp/artifacts
200125

201126
- save_cache:
@@ -206,75 +131,9 @@ jobs:
206131
- persist_to_workspace:
207132
root: /tmp/artifacts
208133
paths:
209-
- "cassandra-ldap-4.1*.jar"
210-
- "cassandra-ldap-4.1*.deb"
211-
- "cassandra-ldap-4.1*.rpm"
212-
213-
publish-github-release-2-2:
214-
docker:
215-
- image: cimg/go:1.17
216-
steps:
217-
- attach_workspace:
218-
at: ./artifacts
219-
- run:
220-
name: "Publish 2.2 Release on GitHub"
221-
command: |
222-
set -xue
223-
go get github.com/tcnksm/ghr
224-
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/
225-
226-
227-
publish-github-release-3-0:
228-
docker:
229-
- image: cimg/go:1.17
230-
steps:
231-
- attach_workspace:
232-
at: ./artifacts
233-
- run:
234-
name: "Publish 3.0 Release on GitHub"
235-
command: |
236-
set -xue
237-
go get github.com/tcnksm/ghr
238-
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/
239-
240-
publish-github-release-3-11:
241-
docker:
242-
- image: cimg/go:1.17
243-
steps:
244-
- attach_workspace:
245-
at: ./artifacts
246-
- run:
247-
name: "Publish 3.11 Release on GitHub"
248-
command: |
249-
set -xue
250-
go get github.com/tcnksm/ghr
251-
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/
252-
253-
publish-github-release-4-0:
254-
docker:
255-
- image: cimg/go:1.17
256-
steps:
257-
- attach_workspace:
258-
at: ./artifacts
259-
- run:
260-
name: "Publish 4.0 Release on GitHub"
261-
command: |
262-
set -xue
263-
go get github.com/tcnksm/ghr
264-
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/
265-
266-
publish-github-release-4-1:
267-
docker:
268-
- image: cimg/go:1.17
269-
steps:
270-
- attach_workspace:
271-
at: ./artifacts
272-
- run:
273-
name: "Publish 4.1 Release on GitHub"
274-
command: |
275-
set -xue
276-
go get github.com/tcnksm/ghr
277-
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./artifacts/
134+
- "cassandra-ldap-5.0*.jar"
135+
- "cassandra-ldap-5.0*.deb"
136+
- "cassandra-ldap-5.0*.rpm"
278137

279138
workflows:
280139
version: 2
@@ -284,24 +143,6 @@ workflows:
284143
filters:
285144
tags:
286145
only: /^v\d+\.\d+\.\d+$/
287-
- build-2-2:
288-
filters:
289-
branches:
290-
ignore: /.*/
291-
tags:
292-
only: /^v2.2.\d+\-\d+\.\d+\.\d+$/
293-
- build-3-0:
294-
filters:
295-
branches:
296-
ignore: /.*/
297-
tags:
298-
only: /^v3.0.\d+\-\d+\.\d+\.\d+$/
299-
- build-3-11:
300-
filters:
301-
branches:
302-
ignore: /.*/
303-
tags:
304-
only: /^v3.11.\d+\-\d+\.\d+\.\d+$/
305146
- build-4-0:
306147
filters:
307148
branches:
@@ -314,43 +155,9 @@ workflows:
314155
ignore: /.*/
315156
tags:
316157
only: /^v4.1.\d+-\d+\.\d+\.\d+$/
317-
- publish-github-release-2-2:
318-
requires:
319-
- build-2-2
320-
filters:
321-
branches:
322-
ignore: /.*/
323-
tags:
324-
only: /^v2.2.\d+\-\d+\.\d+\.\d+$/
325-
- publish-github-release-3-0:
326-
requires:
327-
- build-3-0
328-
filters:
329-
branches:
330-
ignore: /.*/
331-
tags:
332-
only: /^v3.0.\d+\-\d+\.\d+\.\d+$/
333-
- publish-github-release-3-11:
334-
requires:
335-
- build-3-11
336-
filters:
337-
branches:
338-
ignore: /.*/
339-
tags:
340-
only: /^v3.11.\d+\-\d+\.\d+\.\d+$/
341-
- publish-github-release-4-0:
342-
requires:
343-
- build-4-0
344-
filters:
345-
branches:
346-
ignore: /.*/
347-
tags:
348-
only: /^v4.0.\d+-\d+\.\d+\.\d+$/
349-
- publish-github-release-4-1:
350-
requires:
351-
- build-4-1
158+
- build-5-0:
352159
filters:
353160
branches:
354161
ignore: /.*/
355162
tags:
356-
only: /^v4.1.\d+-\d+\.\d+\.\d+$/
163+
only: /^v5.0.\d+-\d+\.\d+\.\d+$/

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cassandra-3.0/dependency-reduced-pom.xml
33
cassandra-3.11/dependency-reduced-pom.xml
44
cassandra-4.0/dependency-reduced-pom.xml
55
cassandra-4.1/dependency-reduced-pom.xml
6+
cassandra-5.0/dependency-reduced-pom.xml
67

78
# Compiled class file
89
*.class

README.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ and create users based on a configured LDAP server. This implementation provides
1212
Role management must be performed through the usual Cassandra role management— CassandraAuthorizer.
1313
See **How it works** for more details.
1414

15+
## Deprecation note
16+
17+
By releasing of Cassandra 5.0, the Cassandra team has stopped to actively develop / support Cassandra versions
18+
3.0 and 3.11. We keep the source code of respective 3.0 and 3.11 modules in the repository, but they are
19+
commented out from main `pom.xml` as they require Java 8 but Cassandra 5.0 requires Java 11 and the testing framework we use for running embedded Cassandra can not deal with Java 11 while testing Cassandra 3.x even we set source and target for Maven to 1.8. If you want to build 3.x modules, please be sure you run Java 8 and you build only the respective module you want.
20+
1521
## Project Structure and Building
1622

1723
This project consists of 5 modules; the `base` module is the module on which all other implementation modules

base/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
<name>Cassandra LDAP Authenticator common code</name>
2222
<description>Common code for Apache Cassandra LDAP plugin</description>
2323

24+
<properties>
25+
<maven.compiler.source>1.8</maven.compiler.source>
26+
<maven.compiler.target>1.8</maven.compiler.target>
27+
</properties>
28+
2429
<dependencies>
2530
<dependency>
2631
<groupId>org.apache.cassandra</groupId>

cassandra-2.2/pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<version.testng>6.14.3</version.testng>
2828
<version.awaitility>4.0.3</version.awaitility>
2929
<version.testcontainers>1.15.3</version.testcontainers>
30+
31+
<maven.compiler.source>1.8</maven.compiler.source>
32+
<maven.compiler.target>1.8</maven.compiler.target>
3033
</properties>
3134

3235
<dependencyManagement>

cassandra-3.0/pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<version.testng>6.14.3</version.testng>
2828
<version.awaitility>4.0.3</version.awaitility>
2929
<version.testcontainers>1.15.3</version.testcontainers>
30+
31+
<maven.compiler.source>1.8</maven.compiler.source>
32+
<maven.compiler.target>1.8</maven.compiler.target>
3033
</properties>
3134

3235
<dependencyManagement>

cassandra-3.11/pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<version.testng>6.14.3</version.testng>
2828
<version.awaitility>4.0.3</version.awaitility>
2929
<version.testcontainers>1.15.3</version.testcontainers>
30+
31+
<maven.compiler.source>1.8</maven.compiler.source>
32+
<maven.compiler.target>1.8</maven.compiler.target>
3033
</properties>
3134

3235
<dependencyManagement>

0 commit comments

Comments
 (0)