Skip to content

Commit 449f684

Browse files
committed
Updated the java version and the example app.
1 parent f22408f commit 449f684

6 files changed

Lines changed: 35 additions & 17 deletions

File tree

.mvn/wrapper/maven-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.9.4/maven-wrapper-3.9.4.jar
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.15/apache-maven-3.9.15-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Passwordless Java SDK
66

7-
The official [Bitwarden Passwordless.dev](https://passwordless.dev/) Java library, for Java 8+ runtime.
7+
The official [Bitwarden Passwordless.dev](https://passwordless.dev/) Java library, for Java 17+ runtime.
88

99
## Installation
1010

@@ -148,12 +148,9 @@ For a comprehensive list of examples, check out the [API documentation][api-docs
148148

149149
## Contributing
150150

151-
This library compiles to Java 8 compatible runtime and requires minimum JDK 8 installed.
151+
This library compiles to a Java 17 compatible runtime and requires JDK 17 or newer installed. Tested up to JDK 25.
152152

153-
Newer JDK are still backwards compatible to version 8, so you are free to use any of the JDK version - tested up to
154-
version 20.
155-
156-
Download and install [JDK 8](https://adoptium.net/temurin/releases/?version=8) if you do not have compatible JDK.
153+
Download and install [JDK 17](https://adoptium.net/temurin/releases/?version=17) if you do not have a compatible JDK.
157154

158155
The `JAVA_HOME` environment variable needs to contain installed JDK path.
159156

examples/spring-boot-3-jdk-17/.mvn/wrapper/maven-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.9.4/maven-wrapper-3.9.4.jar
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.15/apache-maven-3.9.15-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar

examples/spring-boot-3-jdk-17/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ JDK 17 or newer is required to run the application.
2525
6. For all Passwordless API functionalities supported by Java SDK, navigate to http://localhost:8080/swagger-ui/index.html
2626
7. See [Example Passwordless REST Api requests and responses](example-rest-requests/passwordless-api.http)
2727

28-
[passwordless-java-sdk]:https://github.com/passwordless/passwordless-java-
28+
[passwordless-java-sdk]:https://github.com/passwordless/passwordless-java

examples/spring-boot-3-jdk-17/pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<properties>
1818
<java.version>17</java.version>
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20+
21+
<lombok.version>1.18.38</lombok.version>
2022
</properties>
2123

2224
<dependencies>
@@ -47,7 +49,7 @@
4749
<dependency>
4850
<groupId>org.projectlombok</groupId>
4951
<artifactId>lombok</artifactId>
50-
<version>1.18.28</version>
52+
<version>${lombok.version}</version>
5153
<scope>provided</scope>
5254
</dependency>
5355

@@ -71,6 +73,19 @@
7173

7274
<build>
7375
<plugins>
76+
<plugin>
77+
<groupId>org.apache.maven.plugins</groupId>
78+
<artifactId>maven-compiler-plugin</artifactId>
79+
<configuration>
80+
<annotationProcessorPaths>
81+
<path>
82+
<groupId>org.projectlombok</groupId>
83+
<artifactId>lombok</artifactId>
84+
<version>${lombok.version}</version>
85+
</path>
86+
</annotationProcessorPaths>
87+
</configuration>
88+
</plugin>
7489
<plugin>
7590
<groupId>org.graalvm.buildtools</groupId>
7691
<artifactId>native-maven-plugin</artifactId>

pom.xml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
</developers>
4444

4545
<properties>
46-
<java.version>1.8</java.version>
46+
<java.version>17</java.version>
47+
<lombok.version>1.18.38</lombok.version>
4748
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4849
<sonar.organization>bitwarden</sonar.organization>
4950
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
@@ -102,7 +103,7 @@
102103
<dependency>
103104
<groupId>org.projectlombok</groupId>
104105
<artifactId>lombok</artifactId>
105-
<version>1.18.36</version>
106+
<version>${lombok.version}</version>
106107
<scope>provided</scope>
107108
</dependency>
108109
<!-- <dependency>-->
@@ -156,11 +157,16 @@
156157
<artifactId>maven-compiler-plugin</artifactId>
157158
<version>3.13.0</version>
158159
<configuration>
159-
<source>${java.version}</source>
160-
<source>${java.version}</source>
161-
<source>${java.version}</source>
160+
<release>${java.version}</release>
162161
<showDeprecation>true</showDeprecation>
163162
<showWarnings>true</showWarnings>
163+
<annotationProcessorPaths>
164+
<path>
165+
<groupId>org.projectlombok</groupId>
166+
<artifactId>lombok</artifactId>
167+
<version>${lombok.version}</version>
168+
</path>
169+
</annotationProcessorPaths>
164170
</configuration>
165171
</plugin>
166172
<plugin>

0 commit comments

Comments
 (0)