Skip to content

Commit

Permalink
chore: format pom
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Dec 18, 2024
1 parent 1634144 commit 53d5cfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@
*/
def javaVersion = getProjectProp("java.version");
def javaMajorVersion = Integer.parseInt(javaVersion.indexOf(".") > -1 ? javaVersion.substring(0, javaVersion.indexOf(".")) : javaVersion);
def ecjVersion = javaMajorVersion < 17 ? "3.33.0" : project.properties["eclipse-java-compiler.version"]; def ecjArtifactMeta = artifactFactory.createArtifactWithClassifier("org.eclipse.jdt", "ecj", ecjVersion, "jar", null); def ecjArtifact = artifactResolver.resolve(new org.apache.maven.artifact.resolver.ArtifactResolutionRequest()
def ecjVersion = javaMajorVersion < 17 ? "3.33.0" : project.properties["eclipse-java-compiler.version"];
def ecjArtifactMeta = artifactFactory.createArtifactWithClassifier("org.eclipse.jdt", "ecj", ecjVersion, "jar", null);
def ecjArtifact = artifactResolver.resolve(new org.apache.maven.artifact.resolver.ArtifactResolutionRequest()
.setArtifact(ecjArtifactMeta)
.setLocalRepository(session.localRepository)
.setRemoteRepositories(project.remoteArtifactRepositories)
Expand Down

0 comments on commit 53d5cfc

Please sign in to comment.